Optimize search for loan and client
This commit is contained in:
committed by
Arnold Gálovics
parent
3a53236516
commit
363806286a
@@ -169,7 +169,7 @@ export class LoanApprovalComponent {
|
||||
}
|
||||
|
||||
loanResource() {
|
||||
this.tasksService.getAllLoans().subscribe((response: any) => {
|
||||
this.tasksService.getAllLoansToBeApproved().subscribe((response: any) => {
|
||||
this.loans = response.pageItems;
|
||||
this.loans = this.loans.filter((account: any) => {
|
||||
return (account.status.waitingForDisbursal === true);
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ export class LoanDisbursalComponent {
|
||||
}
|
||||
|
||||
loanResource() {
|
||||
this.tasksService.getAllLoans().subscribe((response: any) => {
|
||||
this.tasksService.getAllLoansToBeDisbursed().subscribe((response: any) => {
|
||||
this.loans = response.pageItems;
|
||||
this.loans = this.loans.filter((account: any) => {
|
||||
return (account.status.waitingForDisbursal === true);
|
||||
|
||||
Reference in New Issue
Block a user