argos/dmp-frontend/src/app/ui/sidebar/sidebar-footer/faq/faq-dialog.component.ts

29 lines
603 B
TypeScript
Raw Normal View History

2019-09-05 12:29:59 +02:00
import { Component, Inject } from '@angular/core';
import { FormGroup } from '@angular/forms';
2019-09-23 10:17:03 +02:00
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
2019-09-05 12:29:59 +02:00
@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);
}
}