Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

add daily quota to the features table information

Rigel Kent61318dd63fc6
diff --git a/client/src/app/shared/instance/instance-features-table.component.html b/client/src/app/shared/instance/instance-features-table.component.html
index ba170f0743..dc8db8cc1b 100644
--- a/client/src/app/shared/instance/instance-features-table.component.html
+++ b/client/src/app/shared/instance/instance-features-table.component.html
@@ -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>
diff --git a/client/src/app/shared/instance/instance-features-table.component.scss b/client/src/app/shared/instance/instance-features-table.component.scss
index d597a03bab..90fbb5c94e 100644
--- a/client/src/app/shared/instance/instance-features-table.component.scss
+++ b/client/src/app/shared/instance/instance-features-table.component.scss
@@ -3,7 +3,6 @@
table {
font-size: 14px;
- max-width: 400px;
.label {
font-weight: $font-semibold;
diff --git a/client/src/app/shared/instance/instance-features-table.component.ts b/client/src/app/shared/instance/instance-features-table.component.ts
index 1aad5aa819..da8da07023 100644
--- a/client/src/app/shared/instance/instance-features-table.component.ts
+++ b/client/src/app/shared/instance/instance-features-table.component.ts
@@ -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(() => {