Add reservation and purchase functionality
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.
This commit is contained in:
16
src/app/ticket-small/ticket-small.component.ts
Normal file
16
src/app/ticket-small/ticket-small.component.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user