Skip to content

Commit

Permalink
fixed subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Jun 9, 2022
1 parent 814098e commit 93c26ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ export default {
}
],
unsubsSubscribedMenu: [
{
href: "/admin/dashboard",
title: "Dashboard",
icon: "fas fa-tachometer-alt",
exactPath:true,
},
{
href: "/admin/subscription",
title: "Subscriptions",
Expand Down
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 93c26ba

Please sign in to comment.