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

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


The following commit(s) were added to refs/heads/main by this push:
     new f421a96  ui: fix handle action response (#5285)
f421a96 is described below

commit f421a961dba721ac061f70a78d523fe4ee1d2dcc
Author: Abhishek Kumar <[email protected]>
AuthorDate: Fri Aug 6 19:50:20 2021 +0530

    ui: fix handle action response (#5285)
    
    Fixes #5284
    
    Signed-off-by: Abhishek Kumar <[email protected]>
---
 ui/src/views/AutogenView.vue | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue
index 24a966d..6540873 100644
--- a/ui/src/views/AutogenView.vue
+++ b/ui/src/views/AutogenView.vue
@@ -1185,15 +1185,15 @@ export default {
               break
             }
           }
-          if (['addLdapConfiguration', 
'deleteLdapConfiguration'].includes(action.api)) {
-            this.$store.dispatch('UpdateConfiguration')
-          }
-          if (jobId) {
-            eventBus.$emit('update-resource-state', this.selectedItems, 
resource, 'InProgress', jobId)
-            resolve(this.pollActionCompletion(jobId, action, resourceName, 
resource, showLoading))
-          }
-          resolve(false)
         }
+        if (['addLdapConfiguration', 
'deleteLdapConfiguration'].includes(action.api)) {
+          this.$store.dispatch('UpdateConfiguration')
+        }
+        if (jobId) {
+          eventBus.$emit('update-resource-state', this.selectedItems, 
resource, 'InProgress', jobId)
+          resolve(this.pollActionCompletion(jobId, action, resourceName, 
resource, showLoading))
+        }
+        resolve(false)
       })
     },
     execSubmit (e) {

Reply via email to