]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-validators/video.ts
Fix client compilation
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-validators / video.ts
index 50d7304b5998dc8c345d2d9f244cfce1ad514a46..f7e4e5e4b175829c875e22c11b096a43c79b2b41 100644 (file)
@@ -23,6 +23,11 @@ export const VIDEO_LICENCE = {
   }
 };
 
+export const VIDEO_LANGUAGE = {
+  VALIDATORS: [ ],
+  MESSAGES: {}
+};
+
 export const VIDEO_DESCRIPTION = {
   VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ],
   MESSAGES: {
@@ -33,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.'
   }
 };