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