You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/09/10 15:45:53 UTC

[cloudstack] branch 4.15 updated: ui: Move eventBus listener to mounted (#5435)

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

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


The following commit(s) were added to refs/heads/4.15 by this push:
     new 4147d5a  ui: Move eventBus listener to mounted (#5435)
4147d5a is described below

commit 4147d5a8883763a1dbea0e5ef530e867968783b9
Author: Nicolas Vazquez <ni...@gmail.com>
AuthorDate: Fri Sep 10 12:45:30 2021 -0300

    ui: Move eventBus listener to mounted (#5435)
    
    This PR fixes the action buttons for IP addresses, needed a refresh before the fix
---
 ui/src/views/AutogenView.vue | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue
index 8b61858d..247ec00 100644
--- a/ui/src/views/AutogenView.vue
+++ b/ui/src/views/AutogenView.vue
@@ -418,6 +418,11 @@ export default {
     eventBus.$off('async-job-complete')
     eventBus.$off('exec-action')
   },
+  mounted () {
+    eventBus.$on('exec-action', (action, isGroupAction) => {
+      this.execAction(action, isGroupAction)
+    })
+  },
   created () {
     eventBus.$on('vm-refresh-data', () => {
       if (this.$route.path === '/vm' || this.$route.path.includes('/vm/')) {
@@ -427,9 +432,6 @@ export default {
     eventBus.$on('async-job-complete', (action) => {
       this.fetchData()
     })
-    eventBus.$on('exec-action', (action, isGroupAction) => {
-      this.execAction(action, isGroupAction)
-    })
 
     this.currentPath = this.$route.fullPath
     this.fetchData()