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
@@ -82,24 +82,17 @@ export class SharesAccountViewComponent implements OnInit {
*/
doAction(name: string) {
switch (name) {
case 'Approve':
case 'Reject':
case 'Close':
case 'Activate':
case 'Undo Approval':
case 'Apply Additional Shares':
this.router.navigate([`actions/${name}`], { relativeTo: this.route });
break;
case 'Modify Application':
this.router.navigate(['edit-shares-account'], { relativeTo: this.route });
break;
case 'Approve':
this.router.navigate(['actions/Approve'], { relativeTo: this.route });
break;
case 'Reject':
this.router.navigate(['actions/Reject'], { relativeTo: this.route });
break;
case 'Close':
this.router.navigate(['actions/Close'], { relativeTo: this.route });
break;
case 'Activate':
this.router.navigate(['actions/Activate'], { relativeTo: this.route });
break;
case 'Undo Approval':
this.router.navigate(['actions/Undo Approval'], { relativeTo: this.route });
break;
case 'Delete':
this.deleteSharesAccount();
break;