40 lines
815 B
TypeScript
40 lines
815 B
TypeScript
|
import { Component, Inject } from '@angular/core';
|
||
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||
|
import { Router } from '@angular/router';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-start-new-dmp',
|
||
|
templateUrl: './start-new-dmp-dialog.component.html',
|
||
|
styleUrls: ['./start-new-dmp-dialog.component.scss']
|
||
|
})
|
||
|
export class StartNewDmpDialogComponent {
|
||
|
|
||
|
public isDialog: boolean = false;
|
||
|
|
||
|
constructor(
|
||
|
public dialogRef: MatDialogRef<StartNewDmpDialogComponent>,
|
||
|
@Inject(MAT_DIALOG_DATA) public data: any,
|
||
|
private router: Router
|
||
|
) {
|
||
|
this.isDialog = data.isDialog;
|
||
|
}
|
||
|
|
||
|
cancel() {
|
||
|
this.dialogRef.close();
|
||
|
}
|
||
|
|
||
|
send() {
|
||
|
this.dialogRef.close(this.data);
|
||
|
}
|
||
|
|
||
|
close() {
|
||
|
this.dialogRef.close(false);
|
||
|
}
|
||
|
|
||
|
startWizard() {
|
||
|
this.router.navigate(['/quick-wizard']);
|
||
|
this.close();
|
||
|
}
|
||
|
|
||
|
}
|