Browse Source

feat: implement the post transfer account balance

pull/2455/head
Dhoni77 2 years ago
parent
commit
75167567cf
  1. 10
      apps/client/src/app/pages/accounts/accounts-page.component.ts

10
apps/client/src/app/pages/accounts/accounts-page.component.ts

@ -298,9 +298,15 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
console.log( console.log(
`Transfer cash balance of ${balance} from account ${accountIdFrom} to account ${accountIdTo}` `Transfer cash balance of ${balance} from account ${accountIdFrom} to account ${accountIdTo}`
); );
}
this.router.navigate(['.'], { relativeTo: this.route }); this.dataService.postTransferAccountBalance({
accountIdFrom,
accountIdTo,
balance
}).pipe(takeUntil(this.unsubscribeSubject)).subscribe(() => {
this.router.navigate(['.'], { relativeTo: this.route });
});
}
}); });
} }
} }

Loading…
Cancel
Save