summaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
authorKonstantin <sulwirld@gmail.com>2023-06-14 17:23:14 +0300
committersulwirld <sulwirld@gmail.com>2023-06-20 21:30:40 +0300
commitfb6c6de90cba53dff84d687d6b3f2b07b822b1dc (patch)
tree5d16a32c5458f469caf27402a94f96e63d239987 /src/main.js
parentaf76e2bc3e756a5325478cada4e643d82e7b466e (diff)
downloadwebui-vue-fb6c6de90cba53dff84d687d6b3f2b07b822b1dc.tar.xz
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 <sulwirld@gmail.com>
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js2
1 files changed, 2 insertions, 0 deletions
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;