import { Component } from '@angular/core'; import { WptDialogRef } from '@arrow/warpaint/dialog'; import { Router } from '@angular/router'; @Component({ templateUrl: './error-dialog.component.html', styleUrls: ['./error-dialog.component.scss'] }) export class ErrorDialogComponent { constructor( private _router: Router, public dialogRef: WptDialogRef ) {} public close(): void { this.dialogRef.close(); } reload() { location.reload(); } redirect() { this._router.navigate(['/']); } }