diff --git a/layouts/default.vue b/layouts/default.vue index 5aeb9d7..d0cd858 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -264,6 +264,23 @@ let links = computed(() => { }, ] }, + ... dataStore.ownTenant.features.accounting ? [{ + label: "Buchhaltung", + defaultOpen: false, + icon: "i-heroicons-chart-bar-square", + children: [ + { + label: "Belege", + to: "/receipts", + icon: "i-heroicons-document-text" + }, + { + label: "Bank", + to: "/banking", + icon: "i-heroicons-document-text" + }, + ] + },] : [], ... dataStore.ownTenant.features.inventory ? [{ label: "Lager", icon: "i-heroicons-puzzle-piece", @@ -286,6 +303,11 @@ let links = computed(() => { to: "/inventoryitems", icon: "i-heroicons-puzzle-piece" }, + ... dataStore.ownTenant.features.vehicles ? [{ + label: "Fahrzeuge", + to: "/vehicles", + icon: "i-heroicons-truck" + }] : [], { label: "Stammdaten", defaultOpen: false, @@ -300,30 +322,9 @@ let links = computed(() => { to: "/services", icon: "i-heroicons-puzzle-piece" }, - ... dataStore.ownTenant.features.vehicles ? [{ - label: "Fahrzeuge", - to: "/vehicles", - icon: "i-heroicons-truck" - }] : [], + ] }, - ... dataStore.ownTenant.features.accounting ? [{ - label: "Buchhaltung", - defaultOpen: false, - icon: "i-heroicons-user-group", - children: [ - { - label: "Belege", - to: "/receipts", - icon: "i-heroicons-document-text" - }, - { - label: "Bank", - to: "/banking", - icon: "i-heroicons-document-text" - }, - ] - },] : [], ... dataStore.ownTenant.features.projects ? [{ label: "Projekte", to: "/projects", @@ -519,8 +520,15 @@ const footerLinks = [/*{ dark="/Logo_Dark.png" class="w-1/3 mx-auto my-10" /> +