Browse Source

UI: Refactoring

pull/6849/head
fe-dev 4 years ago
parent
commit
27e3070b7a
  1. 3
      ui-ngx/src/app/modules/home/components/queue/queue-form.component.ts

3
ui-ngx/src/app/modules/home/components/queue/queue-form.component.ts

@ -205,11 +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(); batchSizeField.updateValueAndValidity({emitEvent: false});
this.hideBatchSize = false; this.hideBatchSize = false;
} }
} }

Loading…
Cancel
Save