aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/form-validators/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/forms/form-validators/video.ts')
-rw-r--r--client/src/app/shared/forms/form-validators/video.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts
index f7e4e5e4b..6542cf8f6 100644
--- a/client/src/app/shared/forms/form-validators/video.ts
+++ b/client/src/app/shared/forms/form-validators/video.ts
@@ -1,4 +1,4 @@
1import { Validators } from '@angular/forms'; 1import { Validators } from '@angular/forms'
2 2
3export const VIDEO_NAME = { 3export const VIDEO_NAME = {
4 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(50) ], 4 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(50) ],
@@ -7,26 +7,26 @@ export const VIDEO_NAME = {
7 'minlength': 'Video name must be at least 3 characters long.', 7 'minlength': 'Video name must be at least 3 characters long.',
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
12export const VIDEO_CATEGORY = { 12export const VIDEO_CATEGORY = {
13 VALIDATORS: [ Validators.required ], 13 VALIDATORS: [ Validators.required ],
14 MESSAGES: { 14 MESSAGES: {
15 'required': 'Video category is required.' 15 'required': 'Video category is required.'
16 } 16 }
17}; 17}
18 18
19export const VIDEO_LICENCE = { 19export const VIDEO_LICENCE = {
20 VALIDATORS: [ Validators.required ], 20 VALIDATORS: [ Validators.required ],
21 MESSAGES: { 21 MESSAGES: {
22 'required': 'Video licence is required.' 22 'required': 'Video licence is required.'
23 } 23 }
24}; 24}
25 25
26export const VIDEO_LANGUAGE = { 26export const VIDEO_LANGUAGE = {
27 VALIDATORS: [ ], 27 VALIDATORS: [ ],
28 MESSAGES: {} 28 MESSAGES: {}
29}; 29}
30 30
31export const VIDEO_DESCRIPTION = { 31export const VIDEO_DESCRIPTION = {
32 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], 32 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ],
@@ -35,7 +35,7 @@ export const VIDEO_DESCRIPTION = {
35 'minlength': 'Video description must be at least 3 characters long.', 35 'minlength': 'Video description must be at least 3 characters long.',
36 'maxlength': 'Video description cannot be more than 250 characters long.' 36 'maxlength': 'Video description cannot be more than 250 characters long.'
37 } 37 }
38}; 38}
39 39
40export const VIDEO_TAGS = { 40export const VIDEO_TAGS = {
41 VALIDATORS: [ Validators.minLength(2), Validators.maxLength(10) ], 41 VALIDATORS: [ Validators.minLength(2), Validators.maxLength(10) ],
@@ -43,4 +43,4 @@ export const VIDEO_TAGS = {
43 'minlength': 'A tag should be more than 2 characters long.', 43 'minlength': 'A tag should be more than 2 characters long.',
44 'maxlength': 'A tag should be less than 10 characters long.' 44 'maxlength': 'A tag should be less than 10 characters long.'
45 } 45 }
46}; 46}