Fix: Move table was checking !x instead of !!x and so was not working
Added checks to void bill, split bill and move table
This commit is contained in:
@ -22,13 +22,16 @@
|
||||
[class.disabled]="!receivePaymentAllowed()">
|
||||
<h3 class="item-name">Receive Payment</h3>
|
||||
</mat-card>
|
||||
<mat-card fxLayout="column" class="square-button" matRipple (click)="moveTable()">
|
||||
<mat-card fxLayout="column" class="square-button" matRipple (click)="moveTable()"
|
||||
[class.disabled]="!moveTableAllowed()">
|
||||
<h3 class="item-name">Move Table</h3>
|
||||
</mat-card>
|
||||
<mat-card fxLayout="column" class="square-button" matRipple (click)="voidBill()">
|
||||
<mat-card fxLayout="column" class="square-button" matRipple (click)="voidBill()"
|
||||
[class.disabled]="!voidBillAllowed()">
|
||||
<h3 class="item-name">Void Bill</h3>
|
||||
</mat-card>
|
||||
<mat-card fxLayout="column" class="square-button" matRipple (click)="splitBill()">
|
||||
<mat-card fxLayout="column" class="square-button" matRipple (click)="splitBill()"
|
||||
[class.disabled]="!splitBillAllowed()">
|
||||
<h3 class="item-name">Split Bill</h3>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user