import { Component, OnInit, OnDestroy, Inject } from '@angular/core'; import { Router } from '@angular/router'; import { ConfigService } from '@arrow/bom/config'; import { WPT_DIALOG_DATA, WptDialogRef } from '@arrow/warpaint/dialog'; @Component({ selector: 'bom-add-quote-warning', templateUrl: 'add-quote-warning.component.html', styleUrls: [ '../../../core/src/style/modal.scss', './add-quote-warning.component.scss' ] }) export class AddQuoteWarningComponent { public history: Array; constructor( @Inject(WPT_DIALOG_DATA) public data: any, private _router: Router, private _configService: ConfigService, public dialogRef: WptDialogRef ) {} // navigates to quote page viewQuotes(): void { this._router.navigate([this._configService.getRoute('maw-quote')]); this.dialogRef.close(); } cancel(): void { this.dialogRef.close(); } }