refactor: loans module (#1237)

This commit is contained in:
Muskan Khedia
2020-08-30 19:50:58 +05:30
committed by GitHub
parent d357263c3e
commit 3c858e308c
83 changed files with 1480 additions and 1369 deletions
@@ -1,8 +0,0 @@
<h1 mat-dialog-title>{{data.heading}}</h1>
<div mat-dialog-content>
<p>{{ data.dialogContext }}</p>
</div>
<mat-dialog-actions align="end">
<button mat-raised-button mat-dialog-close>Cancel</button>
<button mat-raised-button color="warn" [mat-dialog-close]="{ confirm: true }">Confirm</button>
</mat-dialog-actions>
@@ -1,25 +0,0 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LoansConfirmationDialogBoxComponent } from './loans-confirmation-dialog-box.component';
describe('LoansConfirmationDialogBoxComponent', () => {
let component: LoansConfirmationDialogBoxComponent;
let fixture: ComponentFixture<LoansConfirmationDialogBoxComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ LoansConfirmationDialogBoxComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(LoansConfirmationDialogBoxComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -1,22 +0,0 @@
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';
@Component({
selector: 'mifosx-loans-confirmation-dialog-box',
templateUrl: './loans-confirmation-dialog-box.component.html',
styleUrls: ['./loans-confirmation-dialog-box.component.scss']
})
export class LoansConfirmationDialogBoxComponent implements OnInit {
/**
* @param {MatDialogRef} dialogRef Component reference to dialog.
* @param {any} data Provides a confirmation for all the loans account actions.
*/
constructor(public dialogRef: MatDialogRef<LoansConfirmationDialogBoxComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) { }
ngOnInit() {
}
}