From 49f7944e340bada9a32da917bb14e65eb93b06f5 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Wed, 15 Apr 2026 22:33:32 +0200 Subject: [PATCH] feat: show active organisation name as sidebar section title Made-with: Cursor --- .../components/DefaultLayoutWithVerticalNav.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue b/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue index abf61d97..2d7ab896 100644 --- a/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue +++ b/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue @@ -5,10 +5,19 @@ import { useAuthStore } from '@/stores/useAuthStore' const authStore = useAuthStore() const navItems = computed(() => { + const orgName = authStore.currentOrganisation?.name ?? 'Beheer' + + const orgItems = orgNavItems.map(item => { + if ('heading' in item && item.heading === 'Beheer') { + return { ...item, heading: orgName } + } + return item + }) + if (authStore.isSuperAdmin) { - return [...orgNavItems, ...platformNavItems] + return [...orgItems, ...platformNavItems] } - return orgNavItems + return orgItems }) // Components