Skip to content

Commit de5357b

Browse files
authored
WEB-455: fix alignments (#2874)
LGTM
1 parent 7749221 commit de5357b

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,10 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
709709
}
710710

711711
/**
712-
* Check if full term tranche option should be editable at loan level.
713-
* Only available if the loan product has it enabled and is PROGRESSIVE schedule type.
712+
* Check if full term tranche option should be visible at loan level.
713+
* Available when PROGRESSIVE schedule type and multi-disbursement is enabled.
714714
*/
715715
isFullTermTrancheEditable(): boolean {
716-
return this.isProgressive && this.loanProduct?.allowFullTermForTranche === true;
716+
return this.isProgressive && this.multiDisburseLoan === true;
717717
}
718718
}

src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,11 @@ <h3 class="mat-h3 flex-fill">{{ 'labels.heading.Loan Tranche Details' | translat
722722
<span class="flex-60">{{ loanProduct.multiDisburseLoan | yesNo }}</span>
723723
</div>
724724

725-
<div class="flex-100 layout-row-wrap responsive-column" *ngIf="loanProduct.multiDisburseLoan">
726-
<span class="flex-40">{{ 'labels.inputs.Maximum Tranche count' | translate }}:</span>
727-
<span class="flex-60">{{ loanProduct.maxTrancheCount }}</span>
725+
<ng-container *ngIf="loanProduct.multiDisburseLoan">
726+
<div class="flex-fill layout-row">
727+
<span class="flex-40">{{ 'labels.inputs.Maximum Tranche count' | translate }}:</span>
728+
<span class="flex-60">{{ loanProduct.maxTrancheCount }}</span>
729+
</div>
728730
<div class="flex-fill layout-row" *ngIf="loanProduct.outstandingLoanBalance">
729731
<span class="flex-40">{{ 'labels.inputs.Maximum allowed outstanding balance' | translate }}:</span>
730732
<span class="flex-60">{{ loanProduct.outstandingLoanBalance }}</span>
@@ -733,7 +735,14 @@ <h3 class="mat-h3 flex-fill">{{ 'labels.heading.Loan Tranche Details' | translat
733735
<span class="flex-40">{{ 'labels.inputs.Disallow Expected Disbursements' | translate }}:</span>
734736
<span class="flex-60">{{ loanProduct.disallowExpectedDisbursements | yesNo }}</span>
735737
</div>
736-
</div>
738+
<div
739+
class="flex-fill layout-row"
740+
*ngIf="loanProduct.loanScheduleType && loanProduct.loanScheduleType.code === 'PROGRESSIVE'"
741+
>
742+
<span class="flex-40">{{ 'labels.inputs.Allow full term for each tranche' | translate }}:</span>
743+
<span class="flex-60">{{ loanProduct.allowFullTermForTranche | yesNo }}</span>
744+
</div>
745+
</ng-container>
737746

738747
<h3 class="mat-h3 flex-fill">{{ 'labels.heading.Event Settings' | translate }}</h3>
739748

0 commit comments

Comments
 (0)