WEB-464 Lock-in Period Field Allows Zero and Negative Values in Saving Product Creation Form (#2882)
This commit is contained in:
+7
-1
@@ -104,7 +104,13 @@
|
|||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
<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>
|
||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
|
|||||||
Reference in New Issue
Block a user