feat: add loan action (add collateral) (#842)

Fixes: #831
This commit is contained in:
Benura Abeywardena
2020-07-12 17:21:39 +05:30
committed by GitHub
parent 74c816a36c
commit ac529dbae8
10 changed files with 169 additions and 1 deletions
@@ -42,6 +42,8 @@ export class LoanActionButtonResolver implements Resolve<Object> {
return this.loansService.rescheduleLoanTemplate();
} else if (loanActionButton === 'prepay-loan') {
return this.loansService.getLoanActionTemplate(loanId, 'prepayLoan');
} else if (loanActionButton === 'add-collateral') {
return this.loansService.getLoanCollateralTemplate(loanId);
} else if (loanActionButton === 'disburse-to-savings') {
return this.loansService.getLoanActionTemplate(loanId, 'disburseToSavings');
} else if (loanActionButton === 'recovery-payment') {