blob: 2185cdaa9b81e57dd78b349a4c0fd3564c8f4edf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import { Validators } from '@angular/forms'
export const VIDEO_CHANNEL_DISPLAY_NAME = {
VALIDATORS: [
Validators.required,
Validators.minLength(3),
Validators.maxLength(120)
],
MESSAGES: {
'required': 'Display name is required.',
'minlength': 'Display name must be at least 3 characters long.',
'maxlength': 'Display name cannot be more than 120 characters long.'
}
}
export const VIDEO_CHANNEL_DESCRIPTION = {
VALIDATORS: [
Validators.minLength(3),
Validators.maxLength(500)
],
MESSAGES: {
'minlength': 'Description must be at least 3 characters long.',
'maxlength': 'Description cannot be more than 500 characters long.'
}
}
export const VIDEO_CHANNEL_SUPPORT = {
VALIDATORS: [
Validators.minLength(3),
Validators.maxLength(500)
],
MESSAGES: {
'minlength': 'Support text must be at least 3 characters long.',
'maxlength': 'Support text cannot be more than 500 characters long.'
}
}
|