2020-11-16 11:43:22 +01:00
|
|
|
import { Component, Inject } from '@angular/core';
|
|
|
|
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
|
|
|
|
|
|
|
|
@Component({
|
2021-10-22 10:47:06 +02:00
|
|
|
selector: 'cnsl-resend-email-dialog',
|
|
|
|
|
templateUrl: './resend-email-dialog.component.html',
|
|
|
|
|
styleUrls: ['./resend-email-dialog.component.scss'],
|
2020-11-16 11:43:22 +01:00
|
|
|
})
|
|
|
|
|
export class ResendEmailDialogComponent {
|
2021-10-22 10:47:06 +02:00
|
|
|
public email: string = '';
|
2022-09-19 13:35:52 +02:00
|
|
|
constructor(public dialogRef: MatDialogRef<ResendEmailDialogComponent>, @Inject(MAT_DIALOG_DATA) public data: any) {}
|
2020-11-16 11:43:22 +01:00
|
|
|
|
2021-10-22 10:47:06 +02:00
|
|
|
closeDialog(email: string = ''): void {
|
|
|
|
|
this.dialogRef.close(email);
|
|
|
|
|
}
|
2020-11-16 11:43:22 +01:00
|
|
|
|
2021-10-22 10:47:06 +02:00
|
|
|
closeDialogWithSend(email: string = ''): void {
|
|
|
|
|
this.dialogRef.close({ send: true, email });
|
|
|
|
|
}
|
2020-11-16 11:43:22 +01:00
|
|
|
}
|