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.ts9
1 files changed, 9 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 fbf423d08..ba8512e95 100644
--- a/client/src/app/shared/form-validators/custom-config-validators.ts
+++ b/client/src/app/shared/form-validators/custom-config-validators.ts
@@ -98,6 +98,15 @@ export const MAX_USER_LIVES_VALIDATOR: BuildFormValidator = {
98 } 98 }
99} 99}
100 100
101export const MAX_VIDEO_CHANNELS_PER_USER_VALIDATOR: BuildFormValidator = {
102 VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ],
103 MESSAGES: {
104 required: $localize`Max video channels per user is required.`,
105 min: $localize`Max video channels per user must be greater or equal to 1.`,
106 pattern: $localize`Max video channels per user must be a number.`
107 }
108}
109
101export const CONCURRENCY_VALIDATOR: BuildFormValidator = { 110export const CONCURRENCY_VALIDATOR: BuildFormValidator = {
102 VALIDATORS: [ Validators.required, Validators.min(1) ], 111 VALIDATORS: [ Validators.required, Validators.min(1) ],
103 MESSAGES: { 112 MESSAGES: {