Merge pull request #1501 from openMF/quick-fix-for-marking-collaterals-optional

Fix Collaterals on Loan: It is optional
This commit is contained in:
Adam Saghy
2022-08-10 15:29:29 +02:00
committed by GitHub
3 changed files with 5 additions and 7 deletions
@@ -95,8 +95,7 @@ export class CreateLoansAccountComponent implements OnInit {
get loansAccountFormValid() {
return (
this.loansAccountDetailsForm.valid &&
this.loansAccountTermsForm.valid &&
this.loansAccountChargesStep.loansAccountCharges.isValid
this.loansAccountTermsForm.valid
);
}
@@ -174,7 +174,7 @@
<fa-icon icon="arrow-left"></fa-icon>&nbsp;&nbsp;
Previous
</button>
<button mat-raised-button matStepperNext [disabled]="!isCollateralSufficient">
<button mat-raised-button matStepperNext [disabled]="!loansAccountFormValid">
Next&nbsp;&nbsp;
<fa-icon icon="arrow-right"></fa-icon>
</button>
@@ -270,8 +270,7 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
get loansAccountCharges() {
return {
charges: this.chargesDataSource,
collateral: this.collateralDataSource,
isValid: this.isCollateralSufficient
collateral: this.collateralDataSource
};
}