WEB-263: Add Buy Down Fees tabs

This commit is contained in:
Oleksii Novikov
2025-07-28 17:32:25 +03:00
parent e55aaf90be
commit c1128f424d
21 changed files with 397 additions and 27 deletions
@@ -0,0 +1,23 @@
import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { LoansService } from '../loans.service';
@Injectable()
export class LoanBuyDownFeesDataResolver implements Resolve<Object> {
constructor(private loansService: LoansService) {}
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const loanId = route.paramMap.get('loanId') || route.parent.paramMap.get('loanId');
if (!loanId) {
console.error('LoanBuyDownFeesDataResolver: Could not find loanId in route parameters');
return new Observable((observer) => {
observer.next([]);
observer.complete();
});
}
return this.loansService.getBuyDownFeeData(loanId);
}
}