2018-08-28 13:54:25 +02:00
|
|
|
<mat-toolbar color='primary'>
|
2018-09-19 15:18:57 +02:00
|
|
|
<button *ngIf="plusButton" class='head-button on-transition-fade' (click)=clickPlusButton()
|
|
|
|
mat-fab>
|
2018-10-11 14:03:44 +02:00
|
|
|
<mat-icon>add</mat-icon>
|
2018-08-28 13:54:25 +02:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<span class='app-name on-transition-fade'>
|
|
|
|
{{ appName | translate }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class='spacer'></span>
|
|
|
|
|
|
|
|
<button *ngIf="menuList" class='on-transition-fade' [matMenuTriggerFor]="ellipsisMenu" mat-icon-button>
|
2018-10-11 14:03:44 +02:00
|
|
|
<mat-icon>more_vert</mat-icon>
|
2018-08-28 13:54:25 +02:00
|
|
|
</button>
|
|
|
|
</mat-toolbar>
|
|
|
|
|
|
|
|
<mat-menu #ellipsisMenu="matMenu">
|
2018-09-18 18:27:14 +02:00
|
|
|
|
|
|
|
<ng-container *ngFor="let item of menuList">
|
2018-10-11 14:03:44 +02:00
|
|
|
|
2018-10-09 13:44:38 +02:00
|
|
|
<button mat-menu-item *osPerms="item.perm" (click)=clickMenu(item)>
|
2018-10-11 14:03:44 +02:00
|
|
|
<mat-icon *ngIf="item.icon">{{ item.icon }}</mat-icon>
|
2018-09-18 18:27:14 +02:00
|
|
|
{{item.text | translate}}
|
|
|
|
</button>
|
|
|
|
</ng-container>
|
2018-08-28 13:54:25 +02:00
|
|
|
</mat-menu>
|