}
export const INSTANCE_SHORT_DESCRIPTION_VALIDATOR: BuildFormValidator = {
- VALIDATORS: [ Validators.max(250) ],
+ VALIDATORS: [ Validators.maxLength(250) ],
MESSAGES: {
- max: $localize`Short description should not be longer than 250 characters.`
+ maxlength: $localize`Short description should not be longer than 250 characters.`
}
}
}
}
+export const MAX_VIDEO_CHANNELS_PER_USER_VALIDATOR: BuildFormValidator = {
+ VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ],
+ MESSAGES: {
+ required: $localize`Max video channels per user is required.`,
+ min: $localize`Max video channels per user must be greater or equal to 1.`,
+ pattern: $localize`Max video channels per user must be a number.`
+ }
+}
+
export const CONCURRENCY_VALIDATOR: BuildFormValidator = {
VALIDATORS: [ Validators.required, Validators.min(1) ],
MESSAGES: {