argos/dmp-frontend/src/app/library/confirmation-dialog/confirmation-dialog.compone...

29 lines
602 B
TypeScript
Raw Normal View History

2019-01-18 18:03:45 +01:00
import { Component, Inject } from '@angular/core';
2019-09-23 10:17:03 +02:00
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
2019-01-18 18:03:45 +01:00
@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
) {
}
2019-05-22 15:36:24 +02:00
close() {
this.dialogRef.close(false);
}
2019-01-18 18:03:45 +01:00
cancel() {
this.dialogRef.close(false);
}
confirm() {
this.dialogRef.close(true);
}
}