fix: Loan disbursement action is not being displayed
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
43c65b512f
commit
52da1f5e3d
@@ -302,7 +302,8 @@ const routes: Routes = [
|
||||
component: LoanAccountActionsComponent,
|
||||
data: { title: 'Loan Account Actions', breadcrumb: 'action', routeParamBreadcrumb: 'action' },
|
||||
resolve: {
|
||||
actionButtonData: LoanActionButtonResolver
|
||||
actionButtonData: LoanActionButtonResolver,
|
||||
loanDetailsData: LoanDetailsResolver
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -89,8 +89,9 @@ export class LoanAccountActionsComponent {
|
||||
* @param route Activated Route.
|
||||
*/
|
||||
constructor(private route: ActivatedRoute) {
|
||||
this.route.data.subscribe(( data: { actionButtonData: any }) => {
|
||||
this.route.data.subscribe(( data: { actionButtonData: any, loanDetailsData: any }) => {
|
||||
this.actionButtonData = data.actionButtonData;
|
||||
this.actionButtonData.currency = data.loanDetailsData.currency;
|
||||
});
|
||||
|
||||
this.route.params.subscribe(params => {
|
||||
|
||||
Reference in New Issue
Block a user