mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add max lives limit
This commit is contained in:
parent
d846d99c6c
commit
a056ca4813
19 changed files with 147 additions and 5 deletions
|
@ -81,6 +81,13 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th i18n class="sub-label" scope="row">Max parallel lives</th>
|
||||
<td i18n>
|
||||
{{ maxUserLives }} per user / {{ maxInstanceLives }} per instance
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th i18n class="label" colspan="2">Import</th>
|
||||
</tr>
|
||||
|
|
|
@ -21,6 +21,20 @@ export class InstanceFeaturesTableComponent implements OnInit {
|
|||
return Math.min(this.initialUserVideoQuota, this.serverConfig.user.videoQuotaDaily)
|
||||
}
|
||||
|
||||
get maxInstanceLives () {
|
||||
const value = this.serverConfig.live.maxInstanceLives
|
||||
if (value === -1) return $localize`Unlimited`
|
||||
|
||||
return value
|
||||
}
|
||||
|
||||
get maxUserLives () {
|
||||
const value = this.serverConfig.live.maxUserLives
|
||||
if (value === -1) return $localize`Unlimited`
|
||||
|
||||
return value
|
||||
}
|
||||
|
||||
ngOnInit () {
|
||||
this.serverConfig = this.serverService.getTmpConfig()
|
||||
this.serverService.getConfig()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue