Fix for account id parameter in account tabs (#1711)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
7b9e036f01
commit
0f450262b9
@@ -24,7 +24,7 @@ export class LoanDatatableResolver implements Resolve<Object> {
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
const loanId = route.paramMap.get('loanId') || route.parent.paramMap.get('loanId');
|
||||
const loanId = route.paramMap.get('loanId') || route.parent.parent.paramMap.get('loanId');
|
||||
const datatableName = route.paramMap.get('datatableName');
|
||||
return this.loansService.getLoanDatatable(loanId, datatableName);
|
||||
}
|
||||
|
||||
@@ -30,11 +30,11 @@ export class LoanDocumentsTabComponent implements OnInit {
|
||||
constructor(private route: ActivatedRoute,
|
||||
private loansService: LoansService,
|
||||
private settingsService: SettingsService) {
|
||||
this.entityId = this.route.snapshot.params['loanId'];
|
||||
this.entityId = this.route.parent.snapshot.params['loanId'];
|
||||
|
||||
this.route.data.subscribe((data: { loanDocuments: any }) => {
|
||||
this.getLoanDocumentsData(data.loanDocuments);
|
||||
});
|
||||
this.route.data.subscribe((data: { loanDocuments: any }) => {
|
||||
this.getLoanDocumentsData(data.loanDocuments);
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() { }
|
||||
|
||||
@@ -23,7 +23,7 @@ export class NotesTabComponent implements OnInit {
|
||||
private authenticationService: AuthenticationService) {
|
||||
const savedCredentials = this.authenticationService.getCredentials();
|
||||
this.username = savedCredentials.username;
|
||||
this.entityId = this.route.snapshot.params['loanId'];
|
||||
this.entityId = this.route.parent.snapshot.params['loanId'];
|
||||
this.route.data.subscribe((data: { loanNotes: any }) => {
|
||||
this.entityNotes = data.loanNotes;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user