seats are now selectable. returns list of selected seats. colors might not work anymore. 😢😢
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<button class="mx-1 hover:opacity-50">
|
||||
<mat-icon [ngStyle]="getSeatStateColor()" style="font-size: 30px; width: 30px; height: 30px">
|
||||
@if(seatCategory().id ==1){
|
||||
<button (click)="updateSelectedSeats(this.seat())" [disabled]="state() == TheaterSeatState.BOOKED || state() == TheaterSeatState.RESERVED" class="mx-1 hover:opacity-50">
|
||||
<mat-icon [ngStyle]="{'opacity': selected ? '0.5' : '1', color: getSeatStateColor() }" style="font-size: 30px; width: 30px; height: 30px">
|
||||
@if(this.seat().row.category.id ==1){
|
||||
event_seat
|
||||
}
|
||||
@if(seatCategory().id == 2){
|
||||
@if(this.seat().row.category.id == 2){
|
||||
weekend
|
||||
}
|
||||
@if(seatCategory().id == 3){
|
||||
@if(this.seat().row.category.id == 3){
|
||||
chair
|
||||
}
|
||||
</mat-icon>
|
||||
|
||||
Reference in New Issue
Block a user