newsletter config base routing

This commit is contained in:
Julian Krauser 2024-12-25 12:22:10 +01:00
parent d1e935fe20
commit cb03dd0b47
3 changed files with 13 additions and 0 deletions

View file

@ -438,6 +438,13 @@ const router = createRouter({
meta: { type: "read", section: "settings", module: "template_usage" }, meta: { type: "read", section: "settings", module: "template_usage" },
beforeEnter: [abilityAndNavUpdate], beforeEnter: [abilityAndNavUpdate],
}, },
{
path: "newsletter-config",
name: "admin-settings-newsletter_config",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "read", section: "settings", module: "newsletter_config" },
beforeEnter: [abilityAndNavUpdate],
},
], ],
}, },
{ {

View file

@ -119,6 +119,9 @@ export const useNavigationStore = defineStore("navigation", {
...(abilityStore.can("read", "settings", "template_usage") ...(abilityStore.can("read", "settings", "template_usage")
? [{ key: "template_usage", title: "Template-Verwendung" }] ? [{ key: "template_usage", title: "Template-Verwendung" }]
: []), : []),
...(abilityStore.can("read", "settings", "newsletter_config")
? [{ key: "newsletter_config", title: "Newsletter Konfiguration" }]
: []),
], ],
}, },
user: { user: {

View file

@ -4,6 +4,7 @@ export type PermissionModule =
| "member" | "member"
| "calendar" | "calendar"
| "newsletter" | "newsletter"
| "newsletter_config"
| "protocol" | "protocol"
| "qualification" | "qualification"
| "award" | "award"
@ -44,6 +45,7 @@ export const permissionModules: Array<PermissionModule> = [
"member", "member",
"calendar", "calendar",
"newsletter", "newsletter",
"newsletter_config",
"protocol", "protocol",
"qualification", "qualification",
"award", "award",
@ -71,6 +73,7 @@ export const sectionsAndModules: SectionsAndModulesObject = {
"query_store", "query_store",
"template", "template",
"template_usage", "template_usage",
"newsletter_config",
], ],
user: ["user", "role"], user: ["user", "role"],
}; };