summaryrefslogtreecommitdiff
path: root/src/eventBus.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/eventBus.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/eventBus.js')
-rw-r--r--src/eventBus.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eventBus.js b/src/eventBus.js
new file mode 100644
index 00000000..c31c98a5
--- /dev/null
+++ b/src/eventBus.js
@@ -0,0 +1,5 @@
+import Vue from 'vue';
+
+const eventBus = new Vue();
+
+export default eventBus;