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