From 01e3d878d3a569ecda104c22f970870e353ad15b Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sun, 7 Sep 2025 19:09:15 +0200 Subject: [PATCH] Changed Main NAV --- components/MainNav.vue | 93 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 84 insertions(+), 9 deletions(-) diff --git a/components/MainNav.vue b/components/MainNav.vue index e9ea545..ba43fca 100644 --- a/components/MainNav.vue +++ b/components/MainNav.vue @@ -262,11 +262,7 @@ const links = computed(() => { }] : [], ] }, - ... has("checks") ? [{ - label: "Überprüfungen", - to: "/standardEntity/checks", - icon: "i-heroicons-magnifying-glass" - },] : [], + ... has("projects") ? [{ label: "Projekte", to: "/standardEntity/projects", @@ -282,7 +278,11 @@ const links = computed(() => { to: "/standardEntity/plants", icon: "i-heroicons-clipboard-document" },] : [], - + ... has("checks") ? [{ + label: "Überprüfungen", + to: "/standardEntity/checks", + icon: "i-heroicons-magnifying-glass" + },] : [], { label: "Einstellungen", defaultOpen: false, @@ -304,11 +304,13 @@ const links = computed(() => { },{ label: "E-Mail Konten", to: "/settings/emailAccounts", - icon: "i-heroicons-envelope" + icon: "i-heroicons-envelope", + disabled: true },{ label: "Bankkonten", to: "/settings/banking", - icon: "i-heroicons-currency-euro" + icon: "i-heroicons-currency-euro", + disabled: true },{ label: "Textvorlagen", to: "/settings/texttemplates", @@ -334,10 +336,83 @@ const links = computed(() => { } ] }) + +// nur Items mit Children → für Accordion +const accordionItems = computed(() => + links.value.filter(item => Array.isArray(item.children) && item.children.length > 0) +) + +// nur Items ohne Children → als Buttons +const buttonItems = computed(() => + links.value.filter(item => !item.children || item.children.length === 0) +) \ No newline at end of file