template usage to modules

This commit is contained in:
Julian Krauser 2024-12-23 14:00:32 +01:00
parent 600bb47260
commit 2853835d31
9 changed files with 221 additions and 7 deletions

View file

@ -19,7 +19,7 @@ export async function abilityAndNavUpdate(to: any, from: any, next: any) {
next();
} else {
NProgress.done();
next(false);
next({ name: "admin-default" });
}
}

View file

@ -431,6 +431,13 @@ const router = createRouter({
},
],
},
{
path: "template-usage",
name: "admin-settings-template_usage",
component: () => import("@/views/admin/settings/templateUsage/TemplateUsage.vue"),
meta: { type: "read", section: "settings", module: "template_usage" },
beforeEnter: [abilityAndNavUpdate],
},
],
},
{