25
25
<p class =" form__label" >{{ $t('label.operation') }}</p >
26
26
<a-select
27
27
v-model:value =" selectedOperation"
28
- :defaultValue =" $t('label. add') "
28
+ :defaultValue =" ' add'"
29
29
@change =" fetchData"
30
30
v-focus =" true"
31
31
showSearch
32
32
optionFilterProp =" value"
33
33
:filterOption =" (input, option) => {
34
34
return option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
35
35
}" >
36
- <a-select-option :value =" $t('label. add') " >{{ $t('label.add') }}</a-select-option >
37
- <a-select-option :value =" $t('label. remove') " >{{ $t('label.remove') }}</a-select-option >
38
- <a-select-option :value =" $t('label. reset') " >{{ $t('label.reset') }}</a-select-option >
36
+ <a-select-option :value =" ' add'" >{{ $t('label.add') }}</a-select-option >
37
+ <a-select-option :value =" ' remove'" >{{ $t('label.remove') }}</a-select-option >
38
+ <a-select-option :value =" ' reset'" >{{ $t('label.reset') }}</a-select-option >
39
39
</a-select >
40
40
</div >
41
41
42
- <template v-if =" selectedOperation !== $t ( ' label. reset' ) " >
42
+ <template v-if =" selectedOperation !== ' reset' " >
43
43
<div class =" form__item" >
44
44
<p class =" form__label" >
45
45
<span class =" required" >*</span >
@@ -150,7 +150,7 @@ export default {
150
150
selectedAccounts: [],
151
151
selectedProjects: [],
152
152
selectedAccountsList: ' ' ,
153
- selectedOperation: this . $t ( ' label. add' ) ,
153
+ selectedOperation: ' add' ,
154
154
selectedShareWith: this .$t (' label.account' ),
155
155
accountError: false ,
156
156
projectError: false ,
@@ -163,15 +163,15 @@ export default {
163
163
accountsList () {
164
164
return this .accounts .length > 0 ? this .accounts
165
165
.filter (a =>
166
- this .selectedOperation === this . $t ( ' label. add' )
166
+ this .selectedOperation === ' add'
167
167
? ! this .permittedAccounts .includes (a .name )
168
168
: this .permittedAccounts .includes (a .name )
169
169
) : this .accounts
170
170
},
171
171
projectsList () {
172
172
return this .projects > 0 ? this .projects
173
173
.filter (p =>
174
- this .selectedOperation === this . $t ( ' label. add' )
174
+ this .selectedOperation === ' add'
175
175
? ! this .permittedProjects .includes (p .id )
176
176
: this .permittedProjects .includes (p .id )
177
177
) : this .projects
@@ -252,7 +252,7 @@ export default {
252
252
})
253
253
},
254
254
handleChange (selectedItems ) {
255
- if (this .selectedOperation === this . $t ( ' label. add' ) || this .selectedOperation === this . $t ( ' label. remove' ) ) {
255
+ if (this .selectedOperation === ' add' || this .selectedOperation === ' remove' ) {
256
256
if (this .selectedShareWith === this .$t (' label.account' )) {
257
257
this .selectedAccounts = selectedItems
258
258
} else {
0 commit comments