mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00:00
ui: Move eventBus listener to mounted (#5435)
This PR fixes the action buttons for IP addresses, needed a refresh before the fix
This commit is contained in:
parent
c6055a23f3
commit
4147d5a888
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user