implement organisation management
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
LocationBasedServices/smartguide/pipeline/pr-auth There was a failure building this commit

This commit is contained in:
2026-06-29 19:11:03 +02:00
parent c8179d44f6
commit 5a91887861
19 changed files with 1167 additions and 5 deletions
@@ -43,9 +43,11 @@
<mat-nav-list class="nav-list">
@for (item of navItems; track item.label) {
@if (
!item.adminOnly ||
credentialService.isEffectiveSuperAdmin() ||
credentialService.isEffectiveAdmin()
(!item.adminOnly ||
credentialService.isEffectiveSuperAdmin() ||
credentialService.isEffectiveAdmin()) &&
(!item.superAdminOnly ||
credentialService.isEffectiveSuperAdmin())
) {
@if (collapsed()) {
<a
@@ -108,7 +110,6 @@
(credentialService.login | async) || 'Max Mustermann'
}}</strong>
<strong>{{ credentialService.organizationName | async }}</strong>
<span>Startup Coach</span>
</div>
<mat-icon>expand_more</mat-icon>
</div>
@@ -22,6 +22,7 @@ type NavItem = {
disabled: boolean;
queryParams?: Record<string, string | number | boolean>;
adminOnly?: boolean;
superAdminOnly?: boolean;
};
@Component({
@@ -106,6 +107,13 @@ export class AppMenuComponent {
disabled: false,
adminOnly: true,
},
{
label: 'Organisationen',
icon: 'domain',
route: '/organizations',
disabled: false,
superAdminOnly: true,
},
];
constructor(