Skip to content

Commit

Permalink
fix coloring of menu in toolbar (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wagner <[email protected]>
  • Loading branch information
Wagei and Wagei authored Apr 21, 2022
1 parent baafe1a commit 507494c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,20 @@

<ng-container *ngIf="isHandset$ | async">
<ng-container *ngIf="getToolbarActions().length > 2">
<button mat-icon-button type="button" [matMenuTriggerFor]="burgerMenu" matTooltip="More">
<mad-icon-button type="button" [matMenuTriggerFor]="burgerMenu" matTooltip="More">
<mat-icon>more_vert</mat-icon>
</button>
</mad-icon-button>
<mat-menu #burgerMenu="matMenu">
<ng-container *ngFor="let action of getToolbarActions(); let i = index">
<ng-container *ngIf="hasPermission(action) | async">
<button *ngIf="i >= 1" mat-menu-item (click)="action.action()">
<mat-icon
color="primary"
[matBadgeColor]="action.badge ? action.badge.color : 'primary'"
[matBadge]="action.badge ? action.badge.value : null"
matBadgePosition="below after"
>{{ action.matIcon }}</mat-icon>
>{{ action.matIcon }}</mat-icon
>
{{ action.actionName }}
</button>
</ng-container>
Expand Down

0 comments on commit 507494c

Please sign in to comment.