diff --git a/client/src/app/+admin/users/user-edit/user-create.component.ts b/client/src/app/+admin/users/user-edit/user-create.component.ts index c15cfb267..25c060344 100644 --- a/client/src/app/+admin/users/user-edit/user-create.component.ts +++ b/client/src/app/+admin/users/user-edit/user-create.component.ts @@ -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) } diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index bb745d6aa..56cf7d17d 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html @@ -61,7 +61,14 @@ - + +