diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 6 |
1 files changed, 6 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 b2e612c62..d972ee44b 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts | |||
@@ -8,6 +8,12 @@ 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 | export const VIDEO_CATEGORY = { | ||
12 | VALIDATORS: [ Validators.required ], | ||
13 | MESSAGES: { | ||
14 | 'required': 'Video category is required.' | ||
15 | } | ||
16 | }; | ||
11 | export const VIDEO_DESCRIPTION = { | 17 | export const VIDEO_DESCRIPTION = { |
12 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], | 18 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], |
13 | MESSAGES: { | 19 | MESSAGES: { |