optimize UI

hide maintenance
This commit is contained in:
Julian Krauser 2025-07-25 12:45:59 +02:00
parent 8e64b549d7
commit 2c541eb5aa
18 changed files with 30 additions and 26 deletions

View file

@ -125,7 +125,9 @@ export const useNavigationStore = defineStore("navigation", {
? [{ key: "respiratory_mission", title: "Atemschutz-Einsätze" }]
: []),
...(abilityStore.can("create", "unit", "inspection") ? [{ key: "inspection", title: "Prüfungen" }] : []),
...(abilityStore.can("read", "unit", "maintenance") ? [{ key: "maintenance", title: "Wartungen" }] : []),
...(false && abilityStore.can("read", "unit", "maintenance")
? [{ key: "maintenance", title: "Wartungen" }]
: []),
...(abilityStore.can("read", "unit", "damage_report")
? [{ key: "damage_report", title: "Schadensmeldungen" }]
: []),

View file

@ -1,7 +1,7 @@
import { defineStore } from "pinia";
import { v4 as uuid } from "uuid";
import { SocketManager } from "../../socketManager";
import { SocketConnectionTypes } from "../../enums/socketEnum";
import { SocketManager } from "@/socketManager";
import { SocketConnectionTypes } from "@/enums/socketEnum";
import { useNotificationStore } from "../notification";
export const useScannerStore = defineStore("scanner", {