This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.17 by this push:
     new dd3bd21fab UI: fix create tags for LB rules (#6475)
dd3bd21fab is described below

commit dd3bd21fab52d7a1c325541c8368fab4f9625299
Author: Wei Zhou <[email protected]>
AuthorDate: Mon Jun 27 14:24:55 2022 +0200

    UI: fix create tags for LB rules (#6475)
---
 ui/src/views/network/LoadBalancing.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui/src/views/network/LoadBalancing.vue 
b/ui/src/views/network/LoadBalancing.vue
index a879aa8e87..63d7f35e92 100644
--- a/ui/src/views/network/LoadBalancing.vue
+++ b/ui/src/views/network/LoadBalancing.vue
@@ -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) {

Reply via email to