diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-09 13:32:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-09 13:32:44 +0200 |
commit | a10fc78bb0e00e98c8f59edc16cd323b9c8b0615 (patch) | |
tree | 4988ea8836d47321061c7f8c8a78ebd2b4eb35ef /client/src | |
parent | 360329cc029c062bfb145c90f7bf1c007c39af81 (diff) | |
download | PeerTube-a10fc78bb0e00e98c8f59edc16cd323b9c8b0615.tar.gz PeerTube-a10fc78bb0e00e98c8f59edc16cd323b9c8b0615.tar.zst PeerTube-a10fc78bb0e00e98c8f59edc16cd323b9c8b0615.zip |
Fix video channel description/support max length
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video-channel.ts | 8 | ||||
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/shared/forms/form-validators/video-channel.ts b/client/src/app/shared/forms/form-validators/video-channel.ts index 6233d17f7..2185cdaa9 100644 --- a/client/src/app/shared/forms/form-validators/video-channel.ts +++ b/client/src/app/shared/forms/form-validators/video-channel.ts | |||
@@ -15,20 +15,20 @@ export const VIDEO_CHANNEL_DISPLAY_NAME = { | |||
15 | export const VIDEO_CHANNEL_DESCRIPTION = { | 15 | export const VIDEO_CHANNEL_DESCRIPTION = { |
16 | VALIDATORS: [ | 16 | VALIDATORS: [ |
17 | Validators.minLength(3), | 17 | Validators.minLength(3), |
18 | Validators.maxLength(250) | 18 | Validators.maxLength(500) |
19 | ], | 19 | ], |
20 | MESSAGES: { | 20 | MESSAGES: { |
21 | 'minlength': 'Description must be at least 3 characters long.', | 21 | 'minlength': 'Description must be at least 3 characters long.', |
22 | 'maxlength': 'Description cannot be more than 250 characters long.' | 22 | 'maxlength': 'Description cannot be more than 500 characters long.' |
23 | } | 23 | } |
24 | } | 24 | } |
25 | export const VIDEO_CHANNEL_SUPPORT = { | 25 | export const VIDEO_CHANNEL_SUPPORT = { |
26 | VALIDATORS: [ | 26 | VALIDATORS: [ |
27 | Validators.minLength(3), | 27 | Validators.minLength(3), |
28 | Validators.maxLength(300) | 28 | Validators.maxLength(500) |
29 | ], | 29 | ], |
30 | MESSAGES: { | 30 | MESSAGES: { |
31 | 'minlength': 'Support text must be at least 3 characters long.', | 31 | 'minlength': 'Support text must be at least 3 characters long.', |
32 | 'maxlength': 'Support text cannot be more than 300 characters long.' | 32 | 'maxlength': 'Support text cannot be more than 500 characters long.' |
33 | } | 33 | } |
34 | } | 34 | } |
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts index 9ecbbbd60..a986243df 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts | |||
@@ -60,9 +60,9 @@ export const VIDEO_TAGS = { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | export const VIDEO_SUPPORT = { | 62 | export const VIDEO_SUPPORT = { |
63 | VALIDATORS: [ Validators.minLength(3), Validators.maxLength(300) ], | 63 | VALIDATORS: [ Validators.minLength(3), Validators.maxLength(500) ], |
64 | MESSAGES: { | 64 | MESSAGES: { |
65 | 'minlength': 'Video support must be at least 3 characters long.', | 65 | 'minlength': 'Video support must be at least 3 characters long.', |
66 | 'maxlength': 'Video support cannot be more than 300 characters long.' | 66 | 'maxlength': 'Video support cannot be more than 500 characters long.' |
67 | } | 67 | } |
68 | } | 68 | } |