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
@@ -67,11 +67,18 @@ export class SharesAccountViewComponent implements OnInit {
}
}
/**
* Performs button action
* @param {string} name Action name
*/
doAction(name: string) {
switch (name) {
case 'Modify Application':
this.router.navigate(['edit-shares-account'], { relativeTo: this.route });
break;
this.router.navigate(['edit-shares-account'], { relativeTo: this.route });
break;
case 'Approve':
this.router.navigate(['actions/Approve'], { relativeTo: this.route });
break;
}
}