seat coloring based on seatState 🦏

This commit is contained in:
Marcel-Anker
2025-11-06 20:55:12 +01:00
parent ad71111581
commit 689d8fe39a
3 changed files with 16 additions and 7 deletions

View File

@@ -11,4 +11,16 @@ import {Sitzkategorie} from '@infinimotion/model-frontend';
export class SeatComponent {
seatState = input.required<TheaterSeatState>();
seatCategory = input.required<Sitzkategorie>();
getSeatStateColor(): any {
switch (this.seatState()) {
case TheaterSeatState.RESERVED:
return {'color': 'orange'};
case TheaterSeatState.BOOKED:
return {'color': 'red'};
default:
case TheaterSeatState.AVAILABLE:
return {'color': 'black'};
}
}
}