feat: add saving-deposit and withdrawal page (#389)

- Add Savings Module.
- Add saving-account-actions component.
- Add savings-account-transactions component.
- Add savings-routing.module.ts
- Add savings-transaction-template.resolver.ts

Fixes: #249
This commit is contained in:
Jivjyot Singh
2020-05-07 02:27:28 +05:30
committed by GitHub
parent 9ab6481406
commit f2a19708b7
14 changed files with 451 additions and 0 deletions
@@ -0,0 +1,26 @@
/** Angular Imports */
import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
/**
* Create savings account actions component.
*/
@Component({
selector: 'mifosx-saving-account-actions',
templateUrl: './saving-account-actions.component.html',
styleUrls: ['./saving-account-actions.component.scss']
})
export class SavingAccountActionsComponent {
/** flag object to store possible actions and render appropriate UI to the user */
actions: { transaction: boolean } = { transaction: false };
constructor(private router: Router,
private route: ActivatedRoute) {
this.route.params.subscribe(params => {
this.actions[params['action']] = true;
});
}
}