From fb6c6de90cba53dff84d687d6b3f2b07b822b1dc Mon Sep 17 00:00:00 2001 From: Konstantin Date: Wed, 14 Jun 2023 17:23:14 +0300 Subject: Fix kvm session and add event bus Bug description: Before this commit KVM window wasn't being closed after logging out Test: Step1. Launch webui on browser and see KVM page on /#/operations/kvm. Step2. Open additional window using 'Open in new tab'. Step3. Navigate to another page. For example, /#/operations/key-clear. Step4. Logout. Window is still open. Change-Id: Ife79ebca41eb4d588c0b8f4fae06135420eda155 Signed-off-by: Konstantin Maskov --- src/main.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js index 0aae716f..43d09b8c 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,7 @@ import router from './router'; //Exact match alias set to support //dotenv customizations. import store from './store'; +import eventBus from './eventBus'; import { AlertPlugin, @@ -135,3 +136,4 @@ new Vue({ i18n, render: (h) => h(App), }).$mount('#app'); +Vue.prototype.$eventBus = eventBus; -- cgit v1.2.3