UI: Refactoring
This commit is contained in:
parent
395d4f4900
commit
27e3070b7a
@ -205,11 +205,12 @@ export class QueueFormComponent implements ControlValueAccessor, OnInit, OnDestr
|
||||
if (type === QueueSubmitStrategyTypes.BATCH) {
|
||||
batchSizeField.patchValue(1000, {emitEvent: false});
|
||||
batchSizeField.setValidators([Validators.min(1), Validators.required]);
|
||||
batchSizeField.updateValueAndValidity({emitEvent: false});
|
||||
this.hideBatchSize = true;
|
||||
} else {
|
||||
batchSizeField.patchValue(null, {emitEvent: false});
|
||||
batchSizeField.clearValidators();
|
||||
batchSizeField.updateValueAndValidity();
|
||||
batchSizeField.updateValueAndValidity({emitEvent: false});
|
||||
this.hideBatchSize = false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user