1
0
Fork 0

add daily quota to the features table information

This commit is contained in:
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"> <td class="value">
<ng-container *ngIf="initialUserVideoQuota !== -1"> <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> <my-help helpType="custom" [customHtml]="quotaHelpIndication"></my-help>
</ng-container> </ng-container>
<ng-container i18n *ngIf="initialUserVideoQuota === -1"> <ng-container i18n *ngIf="initialUserVideoQuota === -1">
Unlimited Unlimited <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
</ng-container> </ng-container>
</td> </td>
</tr> </tr>

View file

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

View file

@ -21,6 +21,10 @@ export class InstanceFeaturesTableComponent implements OnInit {
return this.serverService.getConfig().user.videoQuota return this.serverService.getConfig().user.videoQuota
} }
get dailyUserVideoQuota () {
return this.serverService.getConfig().user.videoQuotaDaily
}
ngOnInit () { ngOnInit () {
this.serverService.configLoaded this.serverService.configLoaded
.subscribe(() => { .subscribe(() => {