feat: add loan button (close action) (#855)

Fixes: #849
This commit is contained in:
Muskan Khedia
2020-06-09 10:27:33 +05:30
committed by GitHub
parent 347e84f366
commit a3f60783dc
17 changed files with 222 additions and 14 deletions
@@ -0,0 +1,21 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'mifosx-loan-account-actions',
templateUrl: './loan-account-actions.component.html',
styleUrls: ['./loan-account-actions.component.scss']
})
export class LoanAccountActionsComponent {
/** flag object to store possible actions and render appropriate UI to the user */
actions: { close: boolean } = { close: false };
constructor(private router: Router,
private route: ActivatedRoute) {
this.route.params.subscribe(params => {
this.actions[params['action']] = true;
});
}
}