feat: savings account actions (calculate-interest) (#929)

Fixes: #928
This commit is contained in:
Karan Takalkar
2020-06-27 00:57:56 +05:30
committed by GitHub
parent cded123bee
commit acc31b3c26
6 changed files with 89 additions and 1 deletions
@@ -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>
@@ -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();
});
});
@@ -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>) { }
}