UI: fix create tags for LB rules (#6475)

This commit is contained in:
Wei Zhou 2022-06-27 14:24:55 +02:00 committed by GitHub
parent c70bc9d69c
commit dd3bd21fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -204,7 +204,7 @@
<a-input v-model:value="form.value" />
</a-form-item>
</div>
<a-button :disabled="!('createTags' in $store.getters.apis)" type="primary" html-type="submit">{{ $t('label.add') }}</a-button>
<a-button :disabled="!('createTags' in $store.getters.apis)" type="primary" ref="submit" @click="handleAddTag">{{ $t('label.add') }}</a-button>
</a-form>
<a-divider />
@ -834,6 +834,8 @@ export default {
})
}).catch(error => {
this.formRef.value.scrollToField(error.errorFields[0].name)
}).finally(() => {
this.tagsModalLoading = false
})
},
handleDeleteTag (tag) {