diff options
Diffstat (limited to 'client/src/app/shared/shared-instance/instance-features-table.component.ts')
-rw-r--r-- | client/src/app/shared/shared-instance/instance-features-table.component.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-instance/instance-features-table.component.ts b/client/src/app/shared/shared-instance/instance-features-table.component.ts index 76b595c20..0166157f9 100644 --- a/client/src/app/shared/shared-instance/instance-features-table.component.ts +++ b/client/src/app/shared/shared-instance/instance-features-table.component.ts | |||
@@ -21,6 +21,20 @@ export class InstanceFeaturesTableComponent implements OnInit { | |||
21 | return Math.min(this.initialUserVideoQuota, this.serverConfig.user.videoQuotaDaily) | 21 | return Math.min(this.initialUserVideoQuota, this.serverConfig.user.videoQuotaDaily) |
22 | } | 22 | } |
23 | 23 | ||
24 | get maxInstanceLives () { | ||
25 | const value = this.serverConfig.live.maxInstanceLives | ||
26 | if (value === -1) return $localize`Unlimited` | ||
27 | |||
28 | return value | ||
29 | } | ||
30 | |||
31 | get maxUserLives () { | ||
32 | const value = this.serverConfig.live.maxUserLives | ||
33 | if (value === -1) return $localize`Unlimited` | ||
34 | |||
35 | return value | ||
36 | } | ||
37 | |||
24 | ngOnInit () { | 38 | ngOnInit () { |
25 | this.serverConfig = this.serverService.getTmpConfig() | 39 | this.serverConfig = this.serverService.getTmpConfig() |
26 | this.serverService.getConfig() | 40 | this.serverService.getConfig() |