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.
26 lines
789 B
TypeScript
26 lines
789 B
TypeScript
import { LoadingService } from './../loading.service';
|
|
import { Sitzkategorie, Vorstellung } from '@infinimotion/model-frontend';
|
|
import { Component, inject, input } from '@angular/core';
|
|
import { FormBuilder, Validators } from '@angular/forms';
|
|
|
|
@Component({
|
|
selector: 'app-order',
|
|
standalone: false,
|
|
templateUrl: './order.component.html',
|
|
styleUrl: './order.component.css'
|
|
})
|
|
export class OrderComponent {
|
|
performance = input<Vorstellung>();
|
|
seatCategories = input.required<Sitzkategorie[]>();
|
|
|
|
private _formBuilder = inject(FormBuilder);
|
|
loadingService = inject(LoadingService);
|
|
|
|
firstFormGroup = this._formBuilder.group({
|
|
firstCtrl: ['', Validators.required],
|
|
});
|
|
secondFormGroup = this._formBuilder.group({
|
|
secondCtrl: ['', Validators.required],
|
|
});
|
|
}
|