25 lines
609 B
TypeScript
25 lines
609 B
TypeScript
import { Component, Inject, OnInit } from '@angular/core';
|
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
import { ErrorDialogData } from '../error-dialog-data';
|
|
|
|
@Component({
|
|
selector: 'app-error-dialog',
|
|
templateUrl: './error-dialog.component.html',
|
|
styleUrls: ['./error-dialog.component.css']
|
|
})
|
|
export class ErrorDialogComponent implements OnInit {
|
|
|
|
constructor(
|
|
public dialogRef: MatDialogRef<ErrorDialogComponent>,
|
|
@Inject(MAT_DIALOG_DATA) public data: ErrorDialogData
|
|
) { }
|
|
|
|
onNoClick(): void {
|
|
this.dialogRef.close()
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
}
|