2021-10-22 10:47:06 +02:00
|
|
|
import { Component, Inject } from '@angular/core';
|
2020-07-08 10:00:15 +02:00
|
|
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
|
|
|
2022-05-31 09:08:47 +02:00
|
|
|
import { InfoSectionType } from '../info-section/info-section.component';
|
|
|
|
|
2020-07-08 10:00:15 +02:00
|
|
|
@Component({
|
2021-10-22 10:47:06 +02:00
|
|
|
selector: 'cnsl-warn-dialog',
|
|
|
|
templateUrl: './warn-dialog.component.html',
|
|
|
|
styleUrls: ['./warn-dialog.component.scss'],
|
2020-07-08 10:00:15 +02:00
|
|
|
})
|
2021-10-22 10:47:06 +02:00
|
|
|
export class WarnDialogComponent {
|
2022-01-10 11:12:57 +01:00
|
|
|
public confirm: string = '';
|
2022-05-31 09:08:47 +02:00
|
|
|
InfoSectionType: any = InfoSectionType;
|
2022-01-10 11:12:57 +01:00
|
|
|
constructor(public dialogRef: MatDialogRef<WarnDialogComponent>, @Inject(MAT_DIALOG_DATA) public data: any) {}
|
2020-07-08 10:00:15 +02:00
|
|
|
|
2021-10-22 10:47:06 +02:00
|
|
|
public closeDialog(): void {
|
|
|
|
this.dialogRef.close(false);
|
|
|
|
}
|
2020-07-08 10:00:15 +02:00
|
|
|
|
2021-10-22 10:47:06 +02:00
|
|
|
public closeDialogWithSuccess(): void {
|
|
|
|
this.dialogRef.close(true);
|
|
|
|
}
|
2020-07-08 10:00:15 +02:00
|
|
|
}
|