summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/sidebar/event_hub.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/sidebar/event_hub.js')
-rw-r--r--app/assets/javascripts/sidebar/event_hub.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/sidebar/event_hub.js b/app/assets/javascripts/sidebar/event_hub.js
new file mode 100644
index 00000000000..f35506fd5de
--- /dev/null
+++ b/app/assets/javascripts/sidebar/event_hub.js
@@ -0,0 +1,8 @@
+import Vue from 'vue';
+
+const eventHub = new Vue();
+
+// TODO: remove eventHub hack after code splitting refactor
+window.emitSidebarEvent = (...args) => eventHub.$emit(...args);
+
+export default eventHub;