From 41682c8914e0a517825fccb1faa17463d0a84474 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 5 Oct 2021 20:24:51 +0100 Subject: [PATCH] :sparkles: Implementing VueX --- src/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index a5d4c764..cae12b4f 100644 --- a/src/main.js +++ b/src/main.js @@ -14,6 +14,7 @@ import Toasted from 'vue-toasted'; // Toast component, used to show confirm // Import base Dashy components and utils import Dashy from '@/App.vue'; // Main Dashy Vue app import router from '@/router'; // Router, for navigation +import store from '@/store'; // Store, for local state management import serviceWorker from '@/utils/InitServiceWorker'; // Service worker initialization import clickOutside from '@/utils/ClickOutside'; // Directive for closing popups, modals, etc import { messages } from '@/utils/languages'; // Language texts @@ -63,7 +64,9 @@ if (!isKeycloakEnabled()) { window.location.reload(); } else { // Yay - user successfully authenticated with Keycloak, render the app! - new Vue({ router, render, i18n }).$mount('#app'); + new Vue({ + router, store, render, i18n, + }).$mount('#app'); } }); }