feat: add loan button (reschedule loan) (#875)

Fixes: #245
This commit is contained in:
Muskan Khedia
2020-06-27 15:15:24 +05:30
committed by GitHub
parent 30dafba546
commit 8e86ccab8f
9 changed files with 232 additions and 2 deletions
@@ -38,6 +38,8 @@ export class LoanActionButtonResolver implements Resolve<Object> {
return this.loansService.getLoanActionTemplate(loanId, 'close');
} else if (loanActionButton === 'close-as-rescheduled') {
return this.loansService.getLoanActionTemplate(loanId, 'close-rescheduled');
} else if (loanActionButton === 'reschedule') {
return this.loansService.rescheduleLoanTemplate();
} else {
return this.loansService.getLoanActionTemplate(loanId, 'prepayLoan');
}