add daily quota to the features table information
This commit is contained in:
parent
20d2119904
commit
61318dd63f
3 changed files with 6 additions and 3 deletions
|
@ -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 a new issue