You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
603 B
TypeScript
29 lines
603 B
TypeScript
import { Component, Inject } from '@angular/core';
|
|
import { FormGroup } from '@angular/forms';
|
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
|
|
@Component({
|
|
selector: 'app-faq-dialog',
|
|
templateUrl: './faq-dialog.component.html',
|
|
styleUrls: ['./faq-dialog.component.scss']
|
|
})
|
|
export class FaqDialogComponent {
|
|
|
|
constructor(
|
|
public dialogRef: MatDialogRef<FaqDialogComponent>,
|
|
@Inject(MAT_DIALOG_DATA) public data: FormGroup
|
|
) { }
|
|
|
|
cancel() {
|
|
this.dialogRef.close();
|
|
}
|
|
|
|
send() {
|
|
this.dialogRef.close(this.data);
|
|
}
|
|
|
|
close() {
|
|
this.dialogRef.close(false);
|
|
}
|
|
}
|