feat: add view scheduler job history component (#676)

Fixes: #675
This commit is contained in:
Benura Abeywardena
2020-08-24 11:39:25 +05:30
committed by GitHub
parent 755e079f28
commit 2f654ef664
14 changed files with 327 additions and 7 deletions
@@ -0,0 +1,11 @@
<h1 mat-dialog-title> Error Log </h1>
<div mat-dialog-content>
<p> {{ data }}</p>
</div>
<mat-dialog-actions align="left">
<button mat-raised-button mat-dialog-close>Cancel</button>
</mat-dialog-actions>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ErrorDialogComponent } from './error-dialog.component';
describe('ErrorDialogComponent', () => {
let component: ErrorDialogComponent;
let fixture: ComponentFixture<ErrorDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ErrorDialogComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ErrorDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,19 @@
/** Angular Imports. */
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
@Component({
selector: 'mifosx-error-dialog',
templateUrl: './error-dialog.component.html',
styleUrls: ['./error-dialog.component.scss']
})
export class ErrorDialogComponent {
/**
* @param {MatDialogRef} dialogRef Component reference to dialog.
* @param {any} data Provides any data.
*/
constructor(public dialogRef: MatDialogRef<ErrorDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) { }
}