Merge pull request #6849 from ArtemDzhereleiko/AD/bug-fix/queue-form-validation
[3.4] UI: Hotfix of validation queue form
This commit is contained in:
commit
73ef527a1f
@ -205,10 +205,12 @@ export class QueueFormComponent implements ControlValueAccessor, OnInit, OnDestr
|
|||||||
if (type === QueueSubmitStrategyTypes.BATCH) {
|
if (type === QueueSubmitStrategyTypes.BATCH) {
|
||||||
batchSizeField.patchValue(1000, {emitEvent: false});
|
batchSizeField.patchValue(1000, {emitEvent: false});
|
||||||
batchSizeField.setValidators([Validators.min(1), Validators.required]);
|
batchSizeField.setValidators([Validators.min(1), Validators.required]);
|
||||||
|
batchSizeField.updateValueAndValidity({emitEvent: false});
|
||||||
this.hideBatchSize = true;
|
this.hideBatchSize = true;
|
||||||
} else {
|
} else {
|
||||||
batchSizeField.patchValue(null, {emitEvent: false});
|
batchSizeField.patchValue(null, {emitEvent: false});
|
||||||
batchSizeField.clearValidators();
|
batchSizeField.clearValidators();
|
||||||
|
batchSizeField.updateValueAndValidity({emitEvent: false});
|
||||||
this.hideBatchSize = false;
|
this.hideBatchSize = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user