import { Component, OnInit, ChangeDetectionStrategy, Inject } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { BaseTiny } from 'src/app/core/base/tinymce';

@Component({
  selector: 'app-reason-dialog',
  templateUrl: './reason-dialog.component.html',
  styleUrls: ['./reason-dialog.component.scss'],
  // changeDetection: ChangeDetectionStrategy.OnPush
})
export class ReasonDialogComponent extends BaseTiny implements OnInit {
  constructor(
    public dialog: MatDialog,
    public dialogRef: MatDialogRef<ReasonDialogComponent>,
    @Inject(MAT_DIALOG_DATA) public data: any
  ) {
    super()
   }

  ngOnInit(): void {
    // console.log(this.data)
  }

  file(){
    window.open(this.data.manage_testing_file)
  }

}
