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.ts22
1 files changed, 5 insertions, 17 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts
index 8e512e8c8..45da7df4a 100644
--- a/client/src/app/shared/forms/form-validators/video.ts
+++ b/client/src/app/shared/forms/form-validators/video.ts
@@ -23,17 +23,13 @@ export const VIDEO_PRIVACY = {
23} 23}
24 24
25export const VIDEO_CATEGORY = { 25export const VIDEO_CATEGORY = {
26 VALIDATORS: [ Validators.required ], 26 VALIDATORS: [ ],
27 MESSAGES: { 27 MESSAGES: {}
28 'required': 'Video category is required.'
29 }
30} 28}
31 29
32export const VIDEO_LICENCE = { 30export const VIDEO_LICENCE = {
33 VALIDATORS: [ Validators.required ], 31 VALIDATORS: [ ],
34 MESSAGES: { 32 MESSAGES: {}
35 'required': 'Video licence is required.'
36 }
37} 33}
38 34
39export const VIDEO_LANGUAGE = { 35export const VIDEO_LANGUAGE = {
@@ -49,9 +45,8 @@ export const VIDEO_CHANNEL = {
49} 45}
50 46
51export const VIDEO_DESCRIPTION = { 47export const VIDEO_DESCRIPTION = {
52 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(3000) ], 48 VALIDATORS: [ Validators.minLength(3), Validators.maxLength(3000) ],
53 MESSAGES: { 49 MESSAGES: {
54 'required': 'Video description is required.',
55 'minlength': 'Video description must be at least 3 characters long.', 50 'minlength': 'Video description must be at least 3 characters long.',
56 'maxlength': 'Video description cannot be more than 3000 characters long.' 51 'maxlength': 'Video description cannot be more than 3000 characters long.'
57 } 52 }
@@ -64,10 +59,3 @@ export const VIDEO_TAGS = {
64 'maxlength': 'A tag should be less than 30 characters long.' 59 'maxlength': 'A tag should be less than 30 characters long.'
65 } 60 }
66} 61}
67
68export const VIDEO_FILE = {
69 VALIDATORS: [ Validators.required ],
70 MESSAGES: {
71 'required': 'Video file is required.'
72 }
73}