Skip to content

Commit

Permalink
fix: hide reorder button for non-clients
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelPelegrina committed Dec 6, 2023
1 parent 332e248 commit f410260
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h1 class="text-center mt-3">List of orders</h1>
<ng-container matColumnDef="expand">
<th mat-header-cell *matHeaderCellDef aria-label="row actions">Actions</th>
<td mat-cell *matCellDef="let element">
<button (click)="reorder(element); $event.stopPropagation()" mat-mini-fab matTooltip="Order this order again">
<button (click)="reorder(element); $event.stopPropagation()" [hidden]="!isClient" mat-mini-fab matTooltip="Order this order again">
<mat-icon>add</mat-icon>
</button>
<button mat-icon-button aria-label="expand row">
Expand Down

0 comments on commit f410260

Please sign in to comment.