diff --git a/src/App.vue b/src/App.vue index d6b4497c..de99320f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -112,6 +112,12 @@ export default { } ], unsubsSubscribedMenu: [ + { + href: "/admin/dashboard", + title: "Dashboard", + icon: "fas fa-tachometer-alt", + exactPath:true, + }, { href: "/admin/subscription", title: "Subscriptions", diff --git a/src/router.js b/src/router.js index 68c09c60..35ad94e5 100644 --- a/src/router.js +++ b/src/router.js @@ -178,7 +178,7 @@ router.beforeEach((to, from, next) => { if ( to.meta.admin && !json.message.isSubscribed && - (to.path != "/admin/subscription" || to.path != "/admin/dashboard") + (to.path != "/admin/subscription" && to.path != "/admin/dashboard") ) { eventBus.$emit("UpdateAdminNav", false); next({