File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 136136 :closable =" true"
137137 :afterClose =" closeModal"
138138 :maskClosable =" false"
139+ class =" tags-modal"
139140 @cancel =" tagsModalVisible = false" >
140141 <a-spin v-if =" tagsLoading" ></a-spin >
141142
142143 <div v-else v-ctrl-enter =" handleAddTag" >
143- <a-form :ref =" formRef" :model =" form" :rules =" rules " class =" add-tags" >
144+ <a-form :ref =" formRef" :model =" form" :rules =" formRules " class =" add-tags" >
144145 <div class =" add-tags__input" >
145146 <p class =" add-tags__label" >{{ $t('label.key') }}</p >
146147 <a-form-item ref =" key" name =" key" >
155156 <a-input v-model:value =" form.value" />
156157 </a-form-item >
157158 </div >
158- <a-button type =" primary" >{{ $t('label.add') }}</a-button >
159+ <a-button :disabled = " !('createTags' in $store.getters.apis) " type =" primary" ref = " submit " @click = " handleAddTag " >{{ $t('label.add') }}</a-button >
159160 </a-form >
160161
161162 <a-divider style =" margin-top : 0 ;" />
@@ -278,7 +279,7 @@ export default {
278279 initForm () {
279280 this .formRef = ref ()
280281 this .form = reactive ({})
281- this .rules = reactive ({
282+ this .formRules = reactive ({
282283 key: [{ required: true , message: this .$t (' message.specify.tag.key' ) }],
283284 value: [{ required: true , message: this .$t (' message.specify.tag.value' ) }]
284285 })
You can’t perform that action at this time.
0 commit comments