]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/users/user-edit/user-create.component.ts
Fix user create daily quota component
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / users / user-edit / user-create.component.ts
index c15cfb267df7c960531e3fa914efe98144e97240..25c0603444fa20303c79dee1d57fa06b8f632c5c 100644 (file)
@@ -32,7 +32,8 @@ export class UserCreateComponent extends UserEdit implements OnInit {
   ngOnInit () {
     const defaultValues = {
       role: UserRole.USER.toString(),
-      videoQuota: '-1'
+      videoQuota: '-1',
+      videoQuotaDaily: '-1'
     }
 
     this.buildForm({
@@ -40,7 +41,8 @@ export class UserCreateComponent extends UserEdit implements OnInit {
       email: this.userValidatorsService.USER_EMAIL,
       password: this.userValidatorsService.USER_PASSWORD,
       role: this.userValidatorsService.USER_ROLE,
-      videoQuota: this.userValidatorsService.USER_VIDEO_QUOTA
+      videoQuota: this.userValidatorsService.USER_VIDEO_QUOTA,
+      videoQuotaDaily: this.userValidatorsService.USER_VIDEO_QUOTA_DAILY
     }, defaultValues)
   }