ConceptCreator/src/app/delete-confirmation-dialog/delete-confirmation-dialog.component.ts
Sebastian Böckelmann 09abfcaa89
Some checks failed
E2E Testing / test (push) Failing after 1m37s
Fix rendering issues with dialog by using zone to process main process requests
2024-03-20 17:00:44 +01:00

33 lines
989 B
TypeScript

import {Component, Inject, OnInit} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
import {ModelComponent} from "../project/game-model/ModelComponent";
import {ModelComponentTypeUtillities} from "../project/game-model/ModelComponentTypeUtillities";
@Component({
selector: 'app-delete-confirmation-dialog',
templateUrl: './delete-confirmation-dialog.component.html',
styleUrl: './delete-confirmation-dialog.component.scss'
})
export class DeleteConfirmationDialogComponent implements OnInit{
constructor(private dialogRef: MatDialogRef<DeleteConfirmationDialogComponent>,
@Inject(MAT_DIALOG_DATA) public deleteModelComponent: ModelComponent) {
}
ngOnInit(): void {
console.log("delete Confirmation dialog here")
}
cancel() {
this.dialogRef.close(false);
}
confirmDelete() {
this.dialogRef.close(true);
}
protected readonly ModelComponentTypeUtillities = ModelComponentTypeUtillities;
}