From 0830ad78b6e26a26cd0b4bf2218c68b6f5a027fa Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 8 Oct 2024 13:53:58 +0530 Subject: [PATCH] chore: try --- .../sidebarComponents/PrimaryNavItem.vue | 18 +++++++++++++++--- app/javascript/entrypoints/dashboard.js | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/components/layout/sidebarComponents/PrimaryNavItem.vue b/app/javascript/dashboard/components/layout/sidebarComponents/PrimaryNavItem.vue index f32f4b9aa..c47390807 100644 --- a/app/javascript/dashboard/components/layout/sidebarComponents/PrimaryNavItem.vue +++ b/app/javascript/dashboard/components/layout/sidebarComponents/PrimaryNavItem.vue @@ -27,13 +27,25 @@ export default { }, }, created() { - console.log('PRIMARY NAV ITEM', this.name, this.$t(`SIDEBAR.${this.name}`)); + console.log( + 'CREATED: PRIMARY NAV ITEM', + this.name, + this.$t(`SIDEBAR.${this.name}`) + ); }, beforeMount() { - console.log('PRIMARY NAV ITEM', this.name, this.$t(`SIDEBAR.${this.name}`)); + console.log( + 'BEFORE MOUNT: PRIMARY NAV ITEM', + this.name, + this.$t(`SIDEBAR.${this.name}`) + ); }, mounted() { - console.log('PRIMARY NAV ITEM', this.name, this.$t(`SIDEBAR.${this.name}`)); + console.log( + 'MOUNTED: PRIMARY NAV ITEM', + this.name, + this.$t(`SIDEBAR.${this.name}`) + ); }, }; diff --git a/app/javascript/entrypoints/dashboard.js b/app/javascript/entrypoints/dashboard.js index 7938e20eb..bcdccc16e 100644 --- a/app/javascript/entrypoints/dashboard.js +++ b/app/javascript/entrypoints/dashboard.js @@ -101,6 +101,7 @@ sync(store, router); // load common helpers into js commonHelpers(); window.WOOT_STORE = store; +window.dashboardApp = app; window.WootConstants = constants; window.axios = createAxios(axios); // [VITE] Disabled this we don't need it, we can use `useEmitter` directly