mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add user registration policy info
This commit is contained in:
parent
4115f20084
commit
ff71e06ad1
3 changed files with 17 additions and 4 deletions
|
@ -56,6 +56,15 @@ export class InstanceFeaturesTableComponent implements OnInit {
|
|||
if (policy === 'display') return $localize`Displayed`
|
||||
}
|
||||
|
||||
buildRegistrationLabel () {
|
||||
const config = this.serverConfig.signup
|
||||
|
||||
if (config.allowed !== true) return $localize`Disabled`
|
||||
if (config.requiresApproval === true) return $localize`Requires approval by moderators`
|
||||
|
||||
return $localize`Enabled`
|
||||
}
|
||||
|
||||
getServerVersionAndCommit () {
|
||||
return this.serverService.getServerVersionAndCommit()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue