added menu
This commit is contained in:
parent
651352e4a1
commit
a69647ffde
@ -14,6 +14,10 @@
|
|||||||
<mat-icon>arrow_drop_down</mat-icon>
|
<mat-icon>arrow_drop_down</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<mat-menu #menu="matMenu">
|
<mat-menu #menu="matMenu">
|
||||||
|
<a *ngIf="!auth || auth && !auth.authenticated" routerLink="/login" routerLinkActive="active" mat-menu-item>
|
||||||
|
<mat-icon>login</mat-icon> {{'login' | i18n}}
|
||||||
|
</a>
|
||||||
|
<mat-divider *ngIf="!auth || auth && !auth.authenticated"></mat-divider>
|
||||||
<a *ngFor="let locale of locales" mat-menu-item (click)="setLocale(locale)">{{'locale.' + locale + '.long' |
|
<a *ngFor="let locale of locales" mat-menu-item (click)="setLocale(locale)">{{'locale.' + locale + '.long' |
|
||||||
i18n}} <mat-icon inline=true *ngIf="locale == currentLocale">done</mat-icon></a>
|
i18n}} <mat-icon inline=true *ngIf="locale == currentLocale">done</mat-icon></a>
|
||||||
<a mat-menu-item>
|
<a mat-menu-item>
|
||||||
@ -21,6 +25,10 @@
|
|||||||
{{'profileField.name.darkTheme' | i18n}}
|
{{'profileField.name.darkTheme' | i18n}}
|
||||||
</mat-slide-toggle>
|
</mat-slide-toggle>
|
||||||
</a>
|
</a>
|
||||||
|
<mat-divider *ngIf="auth && auth.authenticated"></mat-divider>
|
||||||
|
<a *ngIf="auth && auth.authenticated" (click)="logout()" mat-menu-item>
|
||||||
|
<mat-icon>exit_to_app</mat-icon> {{'logout' | i18n}}
|
||||||
|
</a>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
|
Loading…
Reference in New Issue
Block a user