+8
@@ -0,0 +1,8 @@
|
||||
<h1 mat-dialog-title>Calculate Interest</h1>
|
||||
<div mat-dialog-content>
|
||||
<p>Are you sure you want to calculate interest ?</p>
|
||||
</div>
|
||||
<mat-dialog-actions align="end">
|
||||
<button mat-raised-button mat-dialog-close>Cancel</button>
|
||||
<button mat-raised-button color="primary" [mat-dialog-close]="{ confirm: true }">Confirm</button>
|
||||
</mat-dialog-actions>
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CalculateInterestDialogComponent } from './calculate-interest-dialog.component';
|
||||
|
||||
describe('CalculateInterestDialogComponent', () => {
|
||||
let component: CalculateInterestDialogComponent;
|
||||
let fixture: ComponentFixture<CalculateInterestDialogComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ CalculateInterestDialogComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CalculateInterestDialogComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/** Angular Imports */
|
||||
import { Component } from '@angular/core';
|
||||
import { MatDialogRef } from '@angular/material';
|
||||
|
||||
/**
|
||||
* Calculate interest dialog component.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'mifosx-calculate-interest-dialog',
|
||||
templateUrl: './calculate-interest-dialog.component.html',
|
||||
styleUrls: ['./calculate-interest-dialog.component.scss']
|
||||
})
|
||||
export class CalculateInterestDialogComponent {
|
||||
|
||||
/**
|
||||
* @param {MatDialogRef} dialogRef Component reference to dialog.
|
||||
* @param {any} data savings account id.
|
||||
*/
|
||||
constructor(public dialogRef: MatDialogRef<CalculateInterestDialogComponent>) { }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user