diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-20 16:13:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-20 16:13:55 +0100 |
commit | 07fa4c97ca50b83b0bee9230da97d02401b4e05f (patch) | |
tree | 07a5ef1b14d8f0596c241456e4cc772f38c0e4ba /client/src/app/shared/forms/form-validators/video.ts | |
parent | dddf58c8ce58f6cdd4b8ba93690cceae8f52c37d (diff) | |
download | PeerTube-07fa4c97ca50b83b0bee9230da97d02401b4e05f.tar.gz PeerTube-07fa4c97ca50b83b0bee9230da97d02401b4e05f.tar.zst PeerTube-07fa4c97ca50b83b0bee9230da97d02401b4e05f.zip |
Add support to video support on client
Diffstat (limited to 'client/src/app/shared/forms/form-validators/video.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts index 34a237a12..9ecbbbd60 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts | |||
@@ -44,10 +44,10 @@ export const VIDEO_CHANNEL = { | |||
44 | } | 44 | } |
45 | 45 | ||
46 | export const VIDEO_DESCRIPTION = { | 46 | export const VIDEO_DESCRIPTION = { |
47 | VALIDATORS: [ Validators.minLength(3), Validators.maxLength(3000) ], | 47 | VALIDATORS: [ Validators.minLength(3), Validators.maxLength(10000) ], |
48 | MESSAGES: { | 48 | MESSAGES: { |
49 | 'minlength': 'Video description must be at least 3 characters long.', | 49 | 'minlength': 'Video description must be at least 3 characters long.', |
50 | 'maxlength': 'Video description cannot be more than 3000 characters long.' | 50 | 'maxlength': 'Video description cannot be more than 10000 characters long.' |
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
@@ -58,3 +58,11 @@ export const VIDEO_TAGS = { | |||
58 | 'maxlength': 'A tag should be less than 30 characters long.' | 58 | 'maxlength': 'A tag should be less than 30 characters long.' |
59 | } | 59 | } |
60 | } | 60 | } |
61 | |||
62 | export const VIDEO_SUPPORT = { | ||
63 | VALIDATORS: [ Validators.minLength(3), Validators.maxLength(300) ], | ||
64 | MESSAGES: { | ||
65 | 'minlength': 'Video support must be at least 3 characters long.', | ||
66 | 'maxlength': 'Video support cannot be more than 300 characters long.' | ||
67 | } | ||
68 | } | ||