mirror of https://github.com/Chocobozzz/PeerTube
add daily quota to the features table information
parent
20d2119904
commit
61318dd63f
|
@ -6,13 +6,13 @@
|
|||
|
||||
<td class="value">
|
||||
<ng-container *ngIf="initialUserVideoQuota !== -1">
|
||||
{{ initialUserVideoQuota | bytes: 0 }}
|
||||
{{ initialUserVideoQuota | bytes: 0 }} <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
|
||||
|
||||
<my-help helpType="custom" [customHtml]="quotaHelpIndication"></my-help>
|
||||
</ng-container>
|
||||
|
||||
<ng-container i18n *ngIf="initialUserVideoQuota === -1">
|
||||
Unlimited
|
||||
Unlimited <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
|
||||
</ng-container>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
table {
|
||||
font-size: 14px;
|
||||
max-width: 400px;
|
||||
|
||||
.label {
|
||||
font-weight: $font-semibold;
|
||||
|
|
|
@ -21,6 +21,10 @@ export class InstanceFeaturesTableComponent implements OnInit {
|
|||
return this.serverService.getConfig().user.videoQuota
|
||||
}
|
||||
|
||||
get dailyUserVideoQuota () {
|
||||
return this.serverService.getConfig().user.videoQuotaDaily
|
||||
}
|
||||
|
||||
ngOnInit () {
|
||||
this.serverService.configLoaded
|
||||
.subscribe(() => {
|
||||
|
|
Loading…
Reference in New Issue