feat: shares account actions (approve) (#890)

Fixes: #889
This commit is contained in:
Karan Takalkar
2020-06-23 15:30:03 +05:30
committed by GitHub
parent 02e2155f15
commit 5701bd1ed0
14 changed files with 298 additions and 72 deletions
@@ -0,0 +1,23 @@
/** Angular Imports */
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
/**
* Shares Account Actions Component
*/
@Component({
selector: 'mifosx-shares-account-actions',
templateUrl: './shares-account-actions.component.html',
styleUrls: ['./shares-account-actions.component.scss']
})
export class SharesAccountActionsComponent {
/** Flag object to store possible actions and render appropriate UI to the user */
actions: { Approve: boolean } = { Approve: false };
constructor(private route: ActivatedRoute) {
const name = this.route.snapshot.params['name'];
this.actions[name] = true;
}
}