From 9129b7694d577322327ee79e9b9aa64deee92765 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Feb 2021 10:51:10 +0100 Subject: Allow to specify transcoding and import jobs concurrency --- client/src/app/shared/form-validators/custom-config-validators.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/form-validators/custom-config-validators.ts b/client/src/app/shared/form-validators/custom-config-validators.ts index 41b3cbba9..23f2156c2 100644 --- a/client/src/app/shared/form-validators/custom-config-validators.ts +++ b/client/src/app/shared/form-validators/custom-config-validators.ts @@ -65,6 +65,14 @@ export const TRANSCODING_THREADS_VALIDATOR: BuildFormValidator = { } } +export const CONCURRENCY_VALIDATOR: BuildFormValidator = { + VALIDATORS: [Validators.required, Validators.min(1)], + MESSAGES: { + 'required': $localize`Concurrency is required.`, + 'min': $localize`Concurrency should be greater or equal to 1.` + } +} + export const INDEX_URL_VALIDATOR: BuildFormValidator = { VALIDATORS: [Validators.pattern(/^https:\/\//)], MESSAGES: { -- cgit v1.2.3