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-form-field>
|
||||||
<mat-label>{{ 'labels.inputs.Days From' | translate }}</mat-label>
|
<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')) {
|
@if (delinquencyRangeForm.controls.minimumAgeDays.hasError('required')) {
|
||||||
<mat-error>
|
<mat-error>
|
||||||
{{ 'labels.inputs.Days From' | translate }} {{ 'labels.commons.is' | translate }}
|
{{ 'labels.inputs.Days From' | translate }} {{ 'labels.commons.is' | translate }}
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label>{{ 'labels.inputs.Days Till' | translate }}</mat-label>
|
<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>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
+3
-2
@@ -48,14 +48,15 @@ export class CreateRangeComponent implements OnInit {
|
|||||||
0,
|
0,
|
||||||
[
|
[
|
||||||
Validators.required,
|
Validators.required,
|
||||||
Validators.pattern('^(0*[1-9][0-9]*?)$'),
|
Validators.pattern('^(0|[1-9][0-9]*)$'),
|
||||||
Validators.max(1000)
|
Validators.max(1000)
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
maximumAgeDays: [
|
maximumAgeDays: [
|
||||||
'',
|
'',
|
||||||
[
|
[
|
||||||
Validators.pattern('^(0*[1-9][0-9]*?)$'),
|
Validators.required,
|
||||||
|
Validators.pattern('^(0*[1-9][0-9]*)$'),
|
||||||
Validators.max(10000)
|
Validators.max(10000)
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user