WEB-464 Lock-in Period Field Allows Zero and Negative Values in Saving Product Creation Form (#2882)

This commit is contained in:
Soni Jay
2025-12-16 06:12:38 -06:00
committed by GitHub
parent 0d653ae6bf
commit ec4d16b73c
@@ -104,7 +104,13 @@
<mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
<input type="number" matInput formControlName="lockinPeriodFrequency" />
<input type="number" matInput formControlName="lockinPeriodFrequency" min="1" step="1" required />
<mat-error *ngIf="shareProductSettingsForm.get('lockinPeriodFrequency').hasError('required')">
Frequency is <strong>required</strong>
</mat-error>
<mat-error *ngIf="shareProductSettingsForm.get('lockinPeriodFrequency').hasError('min')">
Frequency must be greater than zero
</mat-error>
</mat-form-field>
<mat-form-field class="flex-48">