mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-05 18:12:07 +00:00
* routes, move grid to list comopnent * rename app list component, move to project sub * add owned-project-detail child module * seperate pipes * set password validators only if needed * create org initialize without pwd * no caps * self xss message * fix user table * fix project member paginator * fix project members pagination, user grant pag * move project grants, fix imports * fix owned project detail imports * use pipe and directives * ng content bindings, rem custom schemas * i18n, fix error toast parameter * toast i18n * side background * fix: sequence, add timestamp * audit * fix metanav background * org domain label * cleanup policy component * shorten user grant roles, mk cols visible as bind * move user components, show otp only if available * preload modules * fix password change * fix org create buttons * class css
130 lines
7.1 KiB
HTML
130 lines
7.1 KiB
HTML
<ng-container *ngIf="(authService.user | async) || {} as user">
|
||
<ng-container *ngIf="((['iam.read','iam.write'] | hasRole)) as iamuser$">
|
||
<mat-toolbar class="root-header">
|
||
<button aria-label="Toggle sidenav" mat-icon-button (click)="drawer.toggle()">
|
||
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
|
||
</button>
|
||
<a *ngIf="(isHandset$ | async) == false" class="title" [routerLink]="['/']">
|
||
<img class="logo" alt="zitadel logo" *ngIf="componentCssClass == 'dark-theme'; else lighttheme"
|
||
src="../assets/images/zitadel-logo-oneline-darkdesign.svg" />
|
||
<ng-template #lighttheme>
|
||
<img alt="zitadel logo" class="logo" src="../assets/images/zitadel-logo-oneline-lightdesign.svg" />
|
||
</ng-template>
|
||
</a>
|
||
|
||
<button (click)="loadOrgs()" *ngIf="profile?.id && org" mat-button
|
||
[matMenuTriggerFor]="menu">{{org?.name ? org.name : 'NO NAME'}}
|
||
<mat-icon>
|
||
arrow_drop_down</mat-icon>
|
||
</button>
|
||
|
||
<mat-menu #menu="matMenu">
|
||
<mat-progress-bar *ngIf="orgLoading" color="accent" mode="indeterminate"></mat-progress-bar>
|
||
<button class="show-all" mat-menu-item
|
||
[routerLink]="[ '/org/overview' ]">{{'MENU.SHOWORGS' | translate}}</button>
|
||
|
||
<button [ngClass]="{'active': temporg.id === org?.id}" [disabled]="!temporg.id"
|
||
*ngFor="let temporg of orgs" mat-menu-item (click)="setActiveOrg(temporg)">
|
||
{{temporg?.name ? temporg.name : 'NO NAME'}}
|
||
</button>
|
||
|
||
<ng-template appHasRole [appHasRole]="['iam.write']">
|
||
<button mat-menu-item [routerLink]="[ '/org/create' ]">
|
||
<mat-icon class="avatar">add</mat-icon>
|
||
{{'MENU.NEWORG' | translate}}
|
||
</button>
|
||
</ng-template>
|
||
</mat-menu>
|
||
<span class="fill-space"></span>
|
||
|
||
<div (clickOutside)="closeAccountCard()" class="icon-container">
|
||
<app-avatar *ngIf="user && (user.displayName || (user.firstName && user.lastName))"
|
||
class="avatar dontcloseonclick" (click)="showAccount = !showAccount" [active]="showAccount"
|
||
[name]="user.displayName ? user.displayName : (user.firstName + ' '+ user.lastName)" [size]="38">
|
||
</app-avatar>
|
||
<app-accounts-card @accounts class="a_card mat-elevation-z5" *ngIf="showAccount"
|
||
(close)="showAccount = false" [profile]="profile" [iamuser]="iamuser$ | async">
|
||
</app-accounts-card>
|
||
</div>
|
||
</mat-toolbar>
|
||
|
||
<mat-drawer-container class="main-container">
|
||
<mat-drawer #drawer class="sidenav" [mode]="(isHandset$ | async) ? 'over' : 'side'"
|
||
[opened]="!(isHandset$ | async)">
|
||
<div class="side-column">
|
||
<div class="list">
|
||
<ng-container *ngIf="authService.authenticationChanged | async">
|
||
<a class="nav-item" [routerLinkActive]="['active']"
|
||
[routerLinkActiveOptions]="{ exact: true }" [routerLink]="['/users/me']">
|
||
<i class="icon las la-user-circle"></i>
|
||
<span class="label">{{ 'MENU.PERSONAL_INFO' | translate }}</span>
|
||
</a>
|
||
</ng-container>
|
||
|
||
<ng-container *ngIf="iamuser$ | async">
|
||
<div class="divider">
|
||
<div class="line"></div>
|
||
</div>
|
||
<a class="nav-item" [routerLinkActive]="['active']" [routerLink]="[ '/iam']">
|
||
<i class="icon las la-gem"></i>
|
||
<span class="label">{{'MENU.IAM' | translate}}</span>
|
||
</a>
|
||
</ng-container>
|
||
|
||
<ng-template appHasRole [appHasRole]="['org.read']">
|
||
<a class="nav-item" [routerLinkActive]="['active']" [routerLink]="[ '/org']">
|
||
<i class="icon las la-archway"></i>
|
||
<span class="label">{{org?.name ? org.name : 'MENU.ORGANIZATION' | translate}}</span>
|
||
</a>
|
||
</ng-template>
|
||
|
||
<ng-template appHasRole [appHasRole]="['project.read']">
|
||
<div class="divider">
|
||
<div class="line"></div>
|
||
<span>{{'MENU.PROJECTSSECTION' | translate}}</span>
|
||
<div class="line"></div>
|
||
</div>
|
||
|
||
<a class="nav-item" [routerLinkActive]="['active']" [routerLink]="[ '/projects']">
|
||
<i class="icon las la-layer-group"></i>
|
||
<span class="label">{{org?.name ? org.name : 'MENU.ORGANIZATION' | translate}}
|
||
{{ 'MENU.PROJECT' | translate }}</span>
|
||
</a>
|
||
|
||
<a class="nav-item" [routerLinkActive]="['active']" [routerLink]="[ '/granted-projects']">
|
||
<i class="icon las la-layer-group"></i>
|
||
<span class="label">{{ 'MENU.GRANTEDPROJECT' | translate }}</span>
|
||
</a>
|
||
</ng-template>
|
||
|
||
<ng-template appHasRole [appHasRole]="['user.read']">
|
||
<div class="divider">
|
||
<div class="line"></div>
|
||
<span class="label">
|
||
{{ 'MENU.USERSECTION' | translate }}</span>
|
||
<div class="line"></div>
|
||
</div>
|
||
|
||
<a class="nav-item" [routerLinkActive]="['active']" [routerLink]="[ '/users/all']"
|
||
[routerLinkActiveOptions]="{ exact: true }">
|
||
<i class="icon las la-users"></i>
|
||
<span class="label">{{ 'MENU.USER' | translate }}</span>
|
||
</a>
|
||
</ng-template>
|
||
|
||
<span class="fill-space"></span>
|
||
</div>
|
||
<span class="fill-space"></span>
|
||
</div>
|
||
</mat-drawer>
|
||
<mat-drawer-content class="content">
|
||
<div *ngIf="iamuser$ | async" class="admin-line" matTooltip="IAM Administrator">
|
||
<span>{{'MENU.IAMADMIN' | translate}}</span>
|
||
</div>
|
||
<div class="router" [@routeAnimations]="prepareRoute(outlet)">
|
||
<router-outlet #outlet="outlet"></router-outlet>
|
||
</div>
|
||
</mat-drawer-content>
|
||
</mat-drawer-container>
|
||
</ng-container>
|
||
</ng-container> |