25 lines
549 B
TypeScript
25 lines
549 B
TypeScript
|
import { Component, Inject } from '@angular/core';
|
||
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-confirmation-dialog',
|
||
|
templateUrl: './confirmation-dialog.component.html',
|
||
|
styleUrls: ['./confirmation-dialog.component.scss']
|
||
|
})
|
||
|
export class ConfirmationDialogComponent {
|
||
|
|
||
|
constructor(
|
||
|
public dialogRef: MatDialogRef<ConfirmationDialogComponent>,
|
||
|
@Inject(MAT_DIALOG_DATA) public data: any
|
||
|
) {
|
||
|
}
|
||
|
|
||
|
cancel() {
|
||
|
this.dialogRef.close(false);
|
||
|
}
|
||
|
|
||
|
confirm() {
|
||
|
this.dialogRef.close(true);
|
||
|
}
|
||
|
}
|