From 3758da9489b636997a3a4fad7fc1a6081737bbe0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 16 Apr 2017 14:06:48 +0200 Subject: Client: use ng2-tag-input for forms with video tags --- client/src/app/shared/forms/form-validators/video.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared') 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 = { }; export const VIDEO_TAGS = { - VALIDATORS: [ Validators.maxLength(10) ], + VALIDATORS: [ Validators.minLength(2), Validators.maxLength(10) ], MESSAGES: { + 'minlength': 'A tag should be more than 2 characters long.', 'maxlength': 'A tag should be less than 10 characters long.' } }; -- cgit v1.2.3