* Investor Search data * Investor module --------- Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
26 lines
932 B
TypeScript
26 lines
932 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
|
|
import { Observable, of } from 'rxjs';
|
|
import { ExternalAssetOwnerService } from '../services/external-asset-owner.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ExternalAssetOwnerJournalEntryResolver implements Resolve<boolean> {
|
|
|
|
/**
|
|
* @param {ExternalAssetOwnerService} externalAssetOwnerService External Asset Owner service.
|
|
*/
|
|
constructor(private externalAssetOwnerService: ExternalAssetOwnerService) { }
|
|
|
|
/**
|
|
* Returns the Loans with Association data.
|
|
* @returns {Observable<any>}
|
|
*/
|
|
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
|
const transferId = route.paramMap.get('transferId') || route.parent.paramMap.get('transferId');
|
|
return this.externalAssetOwnerService.retrieveExternalAssetOwnerTransferJournalEntries(transferId);
|
|
}
|
|
|
|
}
|