feat: shares account actions (approve-shares) (#908)

Fixes: #907
This commit is contained in:
Karan Takalkar
2020-06-25 00:03:12 +05:30
committed by GitHub
parent a9cd990184
commit 245c6c3df3
15 changed files with 274 additions and 17 deletions
@@ -89,6 +89,7 @@ export class SharesAccountViewComponent implements OnInit {
case 'Undo Approval':
case 'Apply Additional Shares':
case 'Redeem Shares':
case 'Approve Additional Shares':
this.router.navigate([`actions/${name}`], { relativeTo: this.route });
break;
case 'Modify Application':
@@ -104,10 +105,10 @@ export class SharesAccountViewComponent implements OnInit {
* Deletes Shares Account.
*/
private deleteSharesAccount() {
const deleteCurrencyDialogRef = this.dialog.open(DeleteDialogComponent, {
const deleteSharesAccountDialogRef = this.dialog.open(DeleteDialogComponent, {
data: { deleteContext: `shares account with id: ${this.sharesAccountData.id}` }
});
deleteCurrencyDialogRef.afterClosed().subscribe((response: any) => {
deleteSharesAccountDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
this.sharesService.deleteSharesAccount(this.sharesAccountData.id).subscribe(() => {
this.router.navigate(['../../'], { relativeTo: this.route });