diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index ed92b42d0ac..82ef8a9f075 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -405,6 +405,10 @@ export default { eventBus.$on('async-job-complete', () => { this.fetchData() }) + eventBus.$on('exec-action', (action, isGroupAction) => { + console.log(action, isGroupAction) + this.execAction(action, isGroupAction) + }) }, mounted () { if (this.device === 'desktop') { diff --git a/ui/src/views/network/PublicIpResource.vue b/ui/src/views/network/PublicIpResource.vue index 6531d02741e..0831f181815 100644 --- a/ui/src/views/network/PublicIpResource.vue +++ b/ui/src/views/network/PublicIpResource.vue @@ -25,7 +25,8 @@ :actions="actions" :selectedRowKeys="selectedRowKeys" :dataView="true" - :resource="resource"/> + :resource="resource" + @exec-action="(action) => execAction(action, action.groupAction && !dataView)" />