ngOnInit () {
const defaultValues = {
role: UserRole.USER.toString(),
- videoQuota: '-1'
+ videoQuota: '-1',
+ videoQuotaDaily: '-1'
}
this.buildForm({
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)
}
</option>
</select>
</div>
-
+
+ <div i18n class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()">
+ Transcoding is enabled on server. The video quota only take in account <strong>original</strong> video. <br />
+ At most, this user could use ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}.
+ </div>
+ </div>
+
+ <div class="form-group">
<label i18n for="videoQuotaDaily">Daily video quota</label>
<div class="peertube-select-container">
<select id="videoQuotaDaily" formControlName="videoQuotaDaily">
</option>
</select>
</div>
-
- <div i18n class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()">
- Transcoding is enabled on server. The video quota only take in account <strong>original</strong> video. <br />
- At most, this user could use ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}.
- </div>
</div>
<input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">