aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-16 14:06:48 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-16 14:06:48 +0200
commit3758da9489b636997a3a4fad7fc1a6081737bbe0 (patch)
tree7c335e1466887af1437c4701c859a72e58c93678 /client/src/app/shared
parentad42bea3a55ca7937f082cc641764de70ce34bd1 (diff)
downloadPeerTube-3758da9489b636997a3a4fad7fc1a6081737bbe0.tar.gz
PeerTube-3758da9489b636997a3a4fad7fc1a6081737bbe0.tar.zst
PeerTube-3758da9489b636997a3a4fad7fc1a6081737bbe0.zip
Client: use ng2-tag-input for forms with video tags
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/forms/form-validators/video.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts
index 293fd805f..f7e4e5e4b 100644
--- a/client/src/app/shared/forms/form-validators/video.ts
+++ b/client/src/app/shared/forms/form-validators/video.ts
@@ -38,8 +38,9 @@ export const VIDEO_DESCRIPTION = {
38}; 38};
39 39
40export const VIDEO_TAGS = { 40export const VIDEO_TAGS = {
41 VALIDATORS: [ Validators.maxLength(10) ], 41 VALIDATORS: [ Validators.minLength(2), Validators.maxLength(10) ],
42 MESSAGES: { 42 MESSAGES: {
43 'minlength': 'A tag should be more than 2 characters long.',
43 'maxlength': 'A tag should be less than 10 characters long.' 44 'maxlength': 'A tag should be less than 10 characters long.'
44 } 45 }
45}; 46};