mirror of https://github.com/Chocobozzz/PeerTube
Fix user create daily quota component
parent
afd2cba554
commit
d6ca951b3c
|
@ -32,7 +32,8 @@ export class UserCreateComponent extends UserEdit implements OnInit {
|
||||||
ngOnInit () {
|
ngOnInit () {
|
||||||
const defaultValues = {
|
const defaultValues = {
|
||||||
role: UserRole.USER.toString(),
|
role: UserRole.USER.toString(),
|
||||||
videoQuota: '-1'
|
videoQuota: '-1',
|
||||||
|
videoQuotaDaily: '-1'
|
||||||
}
|
}
|
||||||
|
|
||||||
this.buildForm({
|
this.buildForm({
|
||||||
|
@ -40,7 +41,8 @@ export class UserCreateComponent extends UserEdit implements OnInit {
|
||||||
email: this.userValidatorsService.USER_EMAIL,
|
email: this.userValidatorsService.USER_EMAIL,
|
||||||
password: this.userValidatorsService.USER_PASSWORD,
|
password: this.userValidatorsService.USER_PASSWORD,
|
||||||
role: this.userValidatorsService.USER_ROLE,
|
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)
|
}, defaultValues)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,13 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
<label i18n for="videoQuotaDaily">Daily video quota</label>
|
||||||
<div class="peertube-select-container">
|
<div class="peertube-select-container">
|
||||||
<select id="videoQuotaDaily" formControlName="videoQuotaDaily">
|
<select id="videoQuotaDaily" formControlName="videoQuotaDaily">
|
||||||
|
@ -70,11 +77,6 @@
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
||||||
|
|
||||||
<input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
|
<input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
|
||||||
|
|
|
@ -17,6 +17,8 @@ input:not([type=submit]) {
|
||||||
input[type=submit] {
|
input[type=submit] {
|
||||||
@include peertube-button;
|
@include peertube-button;
|
||||||
@include orange-button;
|
@include orange-button;
|
||||||
|
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transcoding-information {
|
.transcoding-information {
|
||||||
|
|
Loading…
Reference in New Issue