From 0140ffaf5eb178bd97449cbcf36fd0656f1eef01 Mon Sep 17 00:00:00 2001 From: flfeders Date: Wed, 20 Nov 2024 13:42:12 +0100 Subject: [PATCH] Added Projecttypes --- components/MainNav.vue | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/components/MainNav.vue b/components/MainNav.vue index 55f3758..70e6681 100644 --- a/components/MainNav.vue +++ b/components/MainNav.vue @@ -199,6 +199,21 @@ const links = computed(() => { }, ] }, + /*... dataStore.ownTenant.features.projects ? [{ + label: "Projekte", + defaultOpen: false, + icon: "i-heroicons-clipboard-document-check", + children: [ + ...dataStore.ownTenant.projecttypes.map(i => { + return { + label: i.label, + to: `/projects?type=${i.label}`, + icon: i.icon + } + }) + + ] + },] : [],*/ ... dataStore.ownTenant.features.projects ? [{ label: "Projekte", to: "/projects", @@ -240,25 +255,29 @@ const links = computed(() => { label: "Text Vorlagen", to: "/settings/texttemplates", icon: "i-heroicons-clipboard-document-list" - },{ + },/*{ label: "Eigene Felder", to: "/settings/ownfields", icon: "i-heroicons-clipboard-document-list" - },{ + },*/{ label: "Firmeneinstellungen", to: "/settings/tenant", icon: "i-heroicons-clipboard-document-list" },{ - label: "Reparaturprozesse", - to: "/repairs/prozess/", - icon: "i-heroicons-bars-3-solid" - },{ + label: "Projekttypen", + to: "/projecttypes", + icon: "i-heroicons-clipboard-document-list" + }/*,{ + label: "Integrationen", + to: "/settings/integrations", + icon: "i-heroicons-clipboard-document-list" + }*/,{ label: "Labels", to: "/settings/labels/", icon: "i-heroicons-bars-3-solid" } ] - }, + } ] })