fix: Loan Tranche Details isn't displayed after switching between tabs
This commit is contained in:
@@ -6,6 +6,7 @@ import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import { DisbursementData } from './models/loan-account.model';
|
||||
|
||||
/**
|
||||
* Loans service.
|
||||
@@ -668,4 +669,12 @@ export class LoansService {
|
||||
delete loansAccountData.allowPartialPeriodInterestCalculation;
|
||||
return loansAccountData;
|
||||
}
|
||||
|
||||
saveLoanDisbursementDetailsData(disbursementData: DisbursementData[]): void {
|
||||
localStorage.setItem('disbursementData', JSON.stringify(disbursementData));
|
||||
}
|
||||
|
||||
getLoanDisbursementDetailsData(): DisbursementData[] {
|
||||
return JSON.parse(localStorage.getItem('disbursementData'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user