]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-validators/user.ts
Remove ng2 file upload module
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-validators / user.ts
index fd316583e98b9a80795e4cc4b534b990b853f161..d4c4c1d33a905f0d8e07d90e49d64836f4aeb5e9 100644 (file)
@@ -22,3 +22,10 @@ export const USER_PASSWORD = {
     'minlength': 'Password must be at least 6 characters long.'
   }
 }
+export const USER_VIDEO_QUOTA = {
+  VALIDATORS: [ Validators.required, Validators.min(-1) ],
+  MESSAGES: {
+    'required': 'Video quota is required.',
+    'min': 'Quota must be greater than -1.'
+  }
+}