blob: c49ddd824fb5178d3408101e722ef6d04113b06e [file] [log] [blame]
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { MobmonitorError } from '../../shared/mobmonitor-error';
@Component({
selector: 'mob-error-display-dialog',
templateUrl: './error-display-dialog.component.html',
styleUrls: ['./error-display-dialog.component.scss']
})
export class ErrorDisplayDialogComponent implements OnInit {
private bodyText: string;
constructor(public dialogRef: MatDialogRef<ErrorDisplayDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: MobmonitorError) { }
ngOnInit() {
this.bodyText = JSON.stringify(this.data.body);
}
}