changed selected color to indigo-500

This commit is contained in:
Marcel-Anker
2025-11-13 18:06:52 +01:00
parent 769fb8b2cd
commit cf7c780211
2 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import {Component, inject, input, OnInit, output} from '@angular/core';
import {Component, inject, input} from '@angular/core';
import {TheaterSeatState} from '../model/theater-seat-state.model';
import {Sitzkategorie, Sitzplatz} from '@infinimotion/model-frontend';
import {Sitzplatz} from '@infinimotion/model-frontend';
import {SelectedSeatsService} from '../selected-seats.service';
@Component({
@@ -16,8 +16,9 @@ export class SeatComponent{
selected: boolean = false;
protected seatService = inject(SelectedSeatsService)
protected readonly TheaterSeatState = TheaterSeatState;
getSeatStateColor(): any {
getSeatStateColor(): string {
switch (this.state()) {
case TheaterSeatState.RESERVED:
return 'orange';
@@ -40,5 +41,7 @@ export class SeatComponent{
//console.log(this.selected)
}
protected readonly TheaterSeatState = TheaterSeatState;
isSelectedAndAvaliable(): boolean {
return this.selected && this.state() == TheaterSeatState.AVAILABLE;
}
}