order of permission and sidebar

This commit is contained in:
Julian Krauser 2025-05-16 10:58:31 +02:00
parent 9ee1cca46d
commit dd93f7a7b8
2 changed files with 10 additions and 10 deletions

View file

@ -119,6 +119,7 @@ export const useNavigationStore = defineStore("navigation", {
...(abilityStore.can("read", "unit", "respiratory_mission")
? [{ key: "respiratory_mission", title: "Atemschutz-Einsätze" }]
: []),
...(abilityStore.can("create", "unit", "inspection") ? [{ key: "inspection", title: "Prüfungen" }] : []),
...(abilityStore.can("read", "unit", "damage_report")
? [{ key: "damage_report", title: "Schadensmeldungen" }]
: []),
@ -135,7 +136,6 @@ export const useNavigationStore = defineStore("navigation", {
...(abilityStore.can("read", "unit", "inspection_plan")
? [{ key: "inspection_plan", title: "Prüfpläne" }]
: []),
...(abilityStore.can("create", "unit", "inspection") ? [{ key: "inspection", title: "Prüfungen" }] : []),
],
},
configuration: {