order of permission and sidebar
This commit is contained in:
parent
9ee1cca46d
commit
dd93f7a7b8
2 changed files with 10 additions and 10 deletions
|
@ -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: {
|
||||
|
|
|
@ -13,14 +13,14 @@ export type PermissionModule =
|
|||
| "equipment_type"
|
||||
| "vehicle"
|
||||
| "vehicle_type"
|
||||
| "inspection_plan"
|
||||
| "wearable"
|
||||
| "wearable_type"
|
||||
| "inspection"
|
||||
| "inspection_plan"
|
||||
| "respiratory_gear"
|
||||
| "respiratory_wearer"
|
||||
| "respiratory_mission"
|
||||
| "damage_report"
|
||||
| "wearable"
|
||||
| "wearable_type"
|
||||
// configuration
|
||||
| "qualification"
|
||||
| "award"
|
||||
|
@ -86,14 +86,14 @@ export const permissionModules: Array<PermissionModule> = [
|
|||
"equipment_type",
|
||||
"vehicle",
|
||||
"vehicle_type",
|
||||
"inspection_plan",
|
||||
"wearable",
|
||||
"wearable_type",
|
||||
"inspection",
|
||||
"inspection_plan",
|
||||
"respiratory_gear",
|
||||
"respiratory_wearer",
|
||||
"respiratory_mission",
|
||||
"damage_report",
|
||||
"wearable",
|
||||
"wearable_type",
|
||||
// configuration
|
||||
"qualification",
|
||||
"award",
|
||||
|
@ -121,14 +121,14 @@ export const sectionsAndModules: SectionsAndModulesObject = {
|
|||
"equipment_type",
|
||||
"vehicle",
|
||||
"vehicle_type",
|
||||
"inspection_plan",
|
||||
"wearable",
|
||||
"wearable_type",
|
||||
"inspection",
|
||||
"inspection_plan",
|
||||
"respiratory_gear",
|
||||
"respiratory_wearer",
|
||||
"respiratory_mission",
|
||||
"damage_report",
|
||||
"wearable",
|
||||
"wearable_type",
|
||||
],
|
||||
configuration: [
|
||||
"qualification",
|
||||
|
|
Loading…
Add table
Reference in a new issue