1
0
Fork 0
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:
Chocobozzz 2023-01-23 11:08:42 +01:00
parent 4115f20084
commit ff71e06ad1
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 17 additions and 4 deletions

View file

@ -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()
}