Introduces a cancel order confirmation dialog and integrates it into the order flow. Refactors error and success components to support singular/plural seat messaging and retry actions. Updates navigation and button behaviors for better user experience. Fixes minor UI and logic issues in reservation, purchase, and conversion flows.
23 lines
482 B
TypeScript
23 lines
482 B
TypeScript
import { Component } from '@angular/core';
|
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
|
|
@Component({
|
|
selector: 'app-cancel-order',
|
|
standalone: false,
|
|
templateUrl: './cancel-order.dialog.html',
|
|
styleUrl: './cancel-order.dialog.css',
|
|
})
|
|
export class CancelOrderDialog {
|
|
constructor(
|
|
private dialogRef: MatDialogRef<CancelOrderDialog>,
|
|
) {}
|
|
|
|
submit(): void {
|
|
this.dialogRef.close(true);
|
|
}
|
|
|
|
cancel(): void {
|
|
this.dialogRef.close(false);
|
|
}
|
|
}
|