unit/#70-build-ui-demo #102

Merged
jkeffects merged 36 commits from unit/#70-build-ui-demo into milestone/ff-admin-unit 2025-05-28 14:28:31 +00:00
2 changed files with 10 additions and 10 deletions
Showing only changes of commit dd93f7a7b8 - Show all commits

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: {

View file

@ -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",