1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Allow configuration to be static/readonly (#4315)

* Allow configuration to be static/readonly

* Make all components disableable

* Improve disabled component styling

* Rename edits allowed field in configuration

* Fix CI
This commit is contained in:
Jelle Besseling 2021-10-12 13:33:44 +02:00 committed by GitHub
parent badacdbb4a
commit 8d8a037e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 304 additions and 195 deletions

View file

@ -42,6 +42,7 @@ class ServerConfigManager {
const defaultTheme = getThemeOrDefault(CONFIG.THEME.DEFAULT, DEFAULT_THEME_NAME)
return {
allowEdits: CONFIG.WEBADMIN.CONFIGURATION.EDITS.ALLOWED,
instance: {
name: CONFIG.INSTANCE.NAME,
shortDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION,