feat: shares account actions (apply-shares) (#902)

Fixes: #901
This commit is contained in:
Karan Takalkar
2020-06-24 02:38:13 +05:30
committed by GitHub
parent 96144d4447
commit 4b36a60517
15 changed files with 231 additions and 33 deletions
@@ -12,6 +12,8 @@ import { ActivatedRoute } from '@angular/router';
})
export class SharesAccountActionsComponent {
/** Shares Account Data */
sharesAccountData: any;
/** Flag object to store possible actions and render appropriate UI to the user */
actions: {
'Approve': boolean
@@ -19,14 +21,19 @@ export class SharesAccountActionsComponent {
'Close': boolean
'Activate': boolean
'Undo Approval': boolean
'Apply Additional Shares': boolean
} = {
'Approve': false,
'Reject': false,
'Close': false,
'Activate': false,
'Undo Approval': false
'Undo Approval': false,
'Apply Additional Shares': false
};
/**
* @param {ActivatedRoute} route Activated Route
*/
constructor(private route: ActivatedRoute) {
const name = this.route.snapshot.params['name'];
this.actions[name] = true;