import {Component, Inject, OnInit} from '@angular/core'; import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material'; import {ActionPlanRepresentation} from '../types/action-plan'; @Component({ selector: 'ics-action-plan-dialog', templateUrl: './ics-action-plan-dialog.component.html', styleUrls: ['./ics-action-plan-dialog.component.scss'] }) export class IcsActionPlanDialogComponent implements OnInit { constructor( private dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: ActionPlanRepresentation ) { this.dialogRef.disableClose = true; this.dialogRef.updateSize('60%', '80%'); } ngOnInit() { } onClose(): void { console.log('trying to close'); this.dialogRef.close(); } }