2525 <p class =" form__label" >{{ $t('label.operation') }}</p >
2626 <a-select
2727 v-model:value =" selectedOperation"
28- :defaultValue =" $t('label. add') "
28+ :defaultValue =" ' add'"
2929 @change =" fetchData"
3030 v-focus =" true"
3131 showSearch
3232 optionFilterProp =" value"
3333 :filterOption =" (input, option) => {
3434 return option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
3535 }" >
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 >
3939 </a-select >
4040 </div >
4141
42- <template v-if =" selectedOperation !== $t ( ' label. reset' ) " >
42+ <template v-if =" selectedOperation !== ' reset' " >
4343 <div class =" form__item" >
4444 <p class =" form__label" >
4545 <span class =" required" >*</span >
@@ -150,7 +150,7 @@ export default {
150150 selectedAccounts: [],
151151 selectedProjects: [],
152152 selectedAccountsList: ' ' ,
153- selectedOperation: this . $t ( ' label. add' ) ,
153+ selectedOperation: ' add' ,
154154 selectedShareWith: this .$t (' label.account' ),
155155 accountError: false ,
156156 projectError: false ,
@@ -163,15 +163,15 @@ export default {
163163 accountsList () {
164164 return this .accounts .length > 0 ? this .accounts
165165 .filter (a =>
166- this .selectedOperation === this . $t ( ' label. add' )
166+ this .selectedOperation === ' add'
167167 ? ! this .permittedAccounts .includes (a .name )
168168 : this .permittedAccounts .includes (a .name )
169169 ) : this .accounts
170170 },
171171 projectsList () {
172172 return this .projects > 0 ? this .projects
173173 .filter (p =>
174- this .selectedOperation === this . $t ( ' label. add' )
174+ this .selectedOperation === ' add'
175175 ? ! this .permittedProjects .includes (p .id )
176176 : this .permittedProjects .includes (p .id )
177177 ) : this .projects
@@ -252,7 +252,7 @@ export default {
252252 })
253253 },
254254 handleChange (selectedItems ) {
255- if (this .selectedOperation === this . $t ( ' label. add' ) || this .selectedOperation === this . $t ( ' label. remove' ) ) {
255+ if (this .selectedOperation === ' add' || this .selectedOperation === ' remove' ) {
256256 if (this .selectedShareWith === this .$t (' label.account' )) {
257257 this .selectedAccounts = selectedItems
258258 } else {
0 commit comments