diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-16 14:06:48 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-16 14:06:48 +0200 |
commit | 3758da9489b636997a3a4fad7fc1a6081737bbe0 (patch) | |
tree | 7c335e1466887af1437c4701c859a72e58c93678 /client/src/app/shared | |
parent | ad42bea3a55ca7937f082cc641764de70ce34bd1 (diff) | |
download | PeerTube-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.ts | 3 |
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 | ||
40 | export const VIDEO_TAGS = { | 40 | export 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 | }; |