Files
frontend/src/app/seat-selection/seat-selection.component.ts
Piet Ostendorp db0322d443 Add seat selection and no seats components
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.
2025-11-13 01:48:28 +01:00

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)}`;
}
}