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) { }
}
+5 -2
View File
@@ -21,6 +21,7 @@ import { KeyboardShortcutsDialogComponent } from './keyboard-shortcuts-dialog/ke
/** Custom Modules */
import { IconsModule } from './icons.module';
import { MaterialModule } from './material.module';
import { ErrorDialogComponent } from './error-dialog/error-dialog.component';
/**
* Shared Module
@@ -47,7 +48,8 @@ import { MaterialModule } from './material.module';
EnableDialogComponent,
DisableDialogComponent,
ConfirmationDialogComponent,
KeyboardShortcutsDialogComponent
KeyboardShortcutsDialogComponent,
ErrorDialogComponent
],
exports: [
FileUploadComponent,
@@ -58,7 +60,8 @@ import { MaterialModule } from './material.module';
IconsModule,
MaterialModule,
FormsModule,
ReactiveFormsModule
ReactiveFormsModule,
ErrorDialogComponent
]
})
export class SharedModule { }