close all modals when opening executions

This commit is contained in:
Mutasem 2022-01-17 17:20:37 +01:00
parent 7f94ed2e17
commit 860eeef0aa
2 changed files with 5 additions and 1 deletions

View file

@ -356,7 +356,7 @@ export default mixins(
name: 'ExecutionById',
params: { id: execution.id },
});
this.closeDialog();
this.modalBus.$emit('closeAll');
},
handleAutoRefreshToggle () {
if (this.autoRefreshInterval) {

View file

@ -116,6 +116,10 @@ export default Vue.extend({
this.$props.eventBus.$on('close', () => {
this.closeDialog();
});
this.$props.eventBus.$on('closeAll', () => {
this.closeAllDialogs();
});
}
const activeElement = document.activeElement as HTMLElement;