diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-08 08:39:15 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-08 09:57:29 +0100 |
commit | cadb46d832724ea1a17b085b992142aa32e212be (patch) | |
tree | df1972470ab022e95ff5dc7866c78174c36bfa37 /client/src/app/shared/forms | |
parent | c182778e26b8478fae9d7dd0bf0687baf7b72fd1 (diff) | |
download | PeerTube-cadb46d832724ea1a17b085b992142aa32e212be.tar.gz PeerTube-cadb46d832724ea1a17b085b992142aa32e212be.tar.zst PeerTube-cadb46d832724ea1a17b085b992142aa32e212be.zip |
Design second video upload step
Diffstat (limited to 'client/src/app/shared/forms')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 22 |
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 | ||
25 | export const VIDEO_CATEGORY = { | 25 | export const VIDEO_CATEGORY = { |
26 | VALIDATORS: [ Validators.required ], | 26 | VALIDATORS: [ ], |
27 | MESSAGES: { | 27 | MESSAGES: {} |
28 | 'required': 'Video category is required.' | ||
29 | } | ||
30 | } | 28 | } |
31 | 29 | ||
32 | export const VIDEO_LICENCE = { | 30 | export const VIDEO_LICENCE = { |
33 | VALIDATORS: [ Validators.required ], | 31 | VALIDATORS: [ ], |
34 | MESSAGES: { | 32 | MESSAGES: {} |
35 | 'required': 'Video licence is required.' | ||
36 | } | ||
37 | } | 33 | } |
38 | 34 | ||
39 | export const VIDEO_LANGUAGE = { | 35 | export const VIDEO_LANGUAGE = { |
@@ -49,9 +45,8 @@ export const VIDEO_CHANNEL = { | |||
49 | } | 45 | } |
50 | 46 | ||
51 | export const VIDEO_DESCRIPTION = { | 47 | export 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 | |||
68 | export const VIDEO_FILE = { | ||
69 | VALIDATORS: [ Validators.required ], | ||
70 | MESSAGES: { | ||
71 | 'required': 'Video file is required.' | ||
72 | } | ||
73 | } | ||