diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-13 14:22:04 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-19 12:57:35 +0200 |
commit | ef760e0337018c8a45bb380d1a1d50f912ca23ee (patch) | |
tree | ea1f93502826804c837e8c7834396cf40c33e5c7 /apps/theming/src | |
parent | bbbc1d4a163400eb79cfac3e839769f2e54d7f0a (diff) | |
download | nextcloud-server-ef760e0337018c8a45bb380d1a1d50f912ca23ee.tar.gz nextcloud-server-ef760e0337018c8a45bb380d1a1d50f912ca23ee.zip |
Add admin user customization kill switch
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/src')
-rw-r--r-- | apps/theming/src/UserThemes.vue | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/theming/src/UserThemes.vue b/apps/theming/src/UserThemes.vue index c65b19bed7e..4c92e75199d 100644 --- a/apps/theming/src/UserThemes.vue +++ b/apps/theming/src/UserThemes.vue @@ -64,11 +64,16 @@ <NcSettingsSection :title="t('theming', 'Background')" class="background"> - <p>{{ t('theming', 'Set a custom background') }}</p> - <BackgroundSettings class="background__grid" - :background="background" - :theming-default-background="themingDefaultBackground" - @update:background="updateBackground" /> + <template v-if="isUserThemingDisabled"> + <p>{{ t('theming', 'Customization has been disabled by your administrator') }}</p> + </template> + <template v-else> + <p>{{ t('theming', 'Set a custom background') }}</p> + <BackgroundSettings class="background__grid" + :background="background" + :theming-default-background="themingDefaultBackground" + @update:background="updateBackground" /> + </template> </NcSettingsSection> </section> </template> @@ -90,6 +95,7 @@ const shortcutsDisabled = loadState('theming', 'shortcutsDisabled', false) const background = loadState('theming', 'background') const themingDefaultBackground = loadState('theming', 'themingDefaultBackground') const shippedBackgroundList = loadState('theming', 'shippedBackgrounds') +const isUserThemingDisabled = loadState('theming', 'isUserThemingDisabled') console.debug('Available themes', availableThemes) @@ -109,6 +115,7 @@ export default { shortcutsDisabled, background, themingDefaultBackground, + isUserThemingDisabled, } }, |