Introduces ReservationSuccess, ReservationFailed, PurchaseSuccess, PurchaseFailed, TicketSmall, and TicketList components for handling and displaying reservation and purchase outcomes. Updates order flow logic in OrderComponent to support reservation and purchase states, disables/enables form inputs during submission, and integrates new UI feedback. Also adds angularx-qrcode dependency and updates @infinimotion/model-frontend version.
17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
import { Eintrittskarte } from '@infinimotion/model-frontend';
|
|
import { Component, input } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-ticket-small',
|
|
standalone: false,
|
|
templateUrl: './ticket-small.component.html',
|
|
styleUrl: './ticket-small.component.css',
|
|
})
|
|
export class TicketSmallComponent {
|
|
ticket = input.required<Eintrittskarte>();
|
|
|
|
convertIntoRowName(n: number): string {
|
|
return String.fromCharCode(64 + n);
|
|
}
|
|
}
|