add daily quota to the features table information

pull/1007/merge
Rigel Kent 2018-09-02 21:35:52 +02:00 committed by Chocobozzz
parent 20d2119904
commit 61318dd63f
3 changed files with 6 additions and 3 deletions

View File

@ -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>

View File

@ -3,7 +3,6 @@
table {
font-size: 14px;
max-width: 400px;
.label {
font-weight: $font-semibold;

View File

@ -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(() => {