changed selected color to indigo-500
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user