]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-validators/user.ts
Begin user quota
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-validators / user.ts
index fd316583e98b9a80795e4cc4b534b990b853f161..087a9976092ca06ffd596e0fed4438f507806bb5 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.'
+  }
+}
\ No newline at end of file