feat: add loan button (recovery-repayment) (#1058)

Fixes: #1057
This commit is contained in:
Muskan Khedia
2020-07-11 10:34:02 +05:30
committed by GitHub
parent 843e4ed981
commit 6b688b98dc
15 changed files with 358 additions and 85 deletions
@@ -40,8 +40,12 @@ export class LoanActionButtonResolver implements Resolve<Object> {
return this.loansService.getLoanActionTemplate(loanId, 'close-rescheduled');
} else if (loanActionButton === 'reschedule') {
return this.loansService.rescheduleLoanTemplate();
} else {
} else if (loanActionButton === 'prepay-loan') {
return this.loansService.getLoanActionTemplate(loanId, 'prepayLoan');
} else if (loanActionButton === 'recovery-payment') {
return this.loansService.getLoanActionTemplate(loanId, 'recoverypayment');
} else {
return undefined;
}
}