argos/dmp-frontend/src/common/modules/confirmation-dialog/confirmation-dialog.compone...

31 lines
692 B
TypeScript
Raw Normal View History

2019-01-18 18:03:45 +01:00
import { Component, Inject } from '@angular/core';
2023-10-05 15:58:45 +02:00
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-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 {
agreePrivacyPolicyNames = false;
2019-01-18 18:03:45 +01:00
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);
}
}