aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/form-validators/custom-config-validators.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/form-validators/custom-config-validators.ts')
-rw-r--r--client/src/app/shared/form-validators/custom-config-validators.ts8
1 files changed, 8 insertions, 0 deletions
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 = {
65 } 65 }
66} 66}
67 67
68export const CONCURRENCY_VALIDATOR: BuildFormValidator = {
69 VALIDATORS: [Validators.required, Validators.min(1)],
70 MESSAGES: {
71 'required': $localize`Concurrency is required.`,
72 'min': $localize`Concurrency should be greater or equal to 1.`
73 }
74}
75
68export const INDEX_URL_VALIDATOR: BuildFormValidator = { 76export const INDEX_URL_VALIDATOR: BuildFormValidator = {
69 VALIDATORS: [Validators.pattern(/^https:\/\//)], 77 VALIDATORS: [Validators.pattern(/^https:\/\//)],
70 MESSAGES: { 78 MESSAGES: {