implement organisation management
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user