Introduces SeatSelectionComponent and NoSeatsInHallComponent for improved seat category display and handling cases with no available seats. Updates order flow to show seat categories, loading spinner, and total price. Refactors TheaterOverlayComponent to provide seat categories, and updates styles and dependencies.
19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
import { Component, input } from '@angular/core';
|
|
import { Sitzkategorie } from '@infinimotion/model-frontend';
|
|
|
|
@Component({
|
|
selector: 'app-seat-selection',
|
|
standalone: false,
|
|
templateUrl: './seat-selection.component.html',
|
|
styleUrl: './seat-selection.component.css'
|
|
})
|
|
export class SeatSelectionComponent {
|
|
seatCategory = input.required<Sitzkategorie>();
|
|
amount: number = 1;
|
|
|
|
getPriceDisplay(price: number): string {
|
|
return `${(price / 100).toFixed(2)} €`;
|
|
}
|
|
}
|
|
|