diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts index de5112238..50d7304b5 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts | |||
@@ -8,12 +8,21 @@ export const VIDEO_NAME = { | |||
8 | 'maxlength': 'Video name cannot be more than 50 characters long.' | 8 | 'maxlength': 'Video name cannot be more than 50 characters long.' |
9 | } | 9 | } |
10 | }; | 10 | }; |
11 | |||
11 | export const VIDEO_CATEGORY = { | 12 | export const VIDEO_CATEGORY = { |
12 | VALIDATORS: [ Validators.required ], | 13 | VALIDATORS: [ Validators.required ], |
13 | MESSAGES: { | 14 | MESSAGES: { |
14 | 'required': 'Video category is required.' | 15 | 'required': 'Video category is required.' |
15 | } | 16 | } |
16 | }; | 17 | }; |
18 | |||
19 | export const VIDEO_LICENCE = { | ||
20 | VALIDATORS: [ Validators.required ], | ||
21 | MESSAGES: { | ||
22 | 'required': 'Video licence is required.' | ||
23 | } | ||
24 | }; | ||
25 | |||
17 | export const VIDEO_DESCRIPTION = { | 26 | export const VIDEO_DESCRIPTION = { |
18 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], | 27 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], |
19 | MESSAGES: { | 28 | MESSAGES: { |