Merge pull request #3051 from JaySoni1/WEB-630-days-till-field-allows-negative-values-in-create-delinquency-range-form
WEB-630 Days till field allows negative values in create delinquency range form
This commit is contained in:
+2
-2
@@ -24,7 +24,7 @@
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ 'labels.inputs.Days From' | translate }}</mat-label>
|
||||
<input matInput type="number" required formControlName="minimumAgeDays" min="1" />
|
||||
<input matInput type="number" required formControlName="minimumAgeDays" min="0" />
|
||||
@if (delinquencyRangeForm.controls.minimumAgeDays.hasError('required')) {
|
||||
<mat-error>
|
||||
{{ 'labels.inputs.Days From' | translate }} {{ 'labels.commons.is' | translate }}
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ 'labels.inputs.Days Till' | translate }}</mat-label>
|
||||
<input matInput type="number" formControlName="maximumAgeDays" />
|
||||
<input matInput type="number" required formControlName="maximumAgeDays" min="1" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
|
||||
+3
-2
@@ -48,14 +48,15 @@ export class CreateRangeComponent implements OnInit {
|
||||
0,
|
||||
[
|
||||
Validators.required,
|
||||
Validators.pattern('^(0*[1-9][0-9]*?)$'),
|
||||
Validators.pattern('^(0|[1-9][0-9]*)$'),
|
||||
Validators.max(1000)
|
||||
]
|
||||
],
|
||||
maximumAgeDays: [
|
||||
'',
|
||||
[
|
||||
Validators.pattern('^(0*[1-9][0-9]*?)$'),
|
||||
Validators.required,
|
||||
Validators.pattern('^(0*[1-9][0-9]*)$'),
|
||||
Validators.max(10000)
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user