summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-01-04 11:50:52 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-01-04 16:46:17 +0100
commitb9d3e17bcecb6b08b077e2a7095ab1341c93556d (patch)
tree3fef7d3afb9d93eab85ffd9c09c5b8c72089ca45 /apps
parent7339355dde6e946bbc151397ea91ba5bf19047f6 (diff)
downloadnextcloud-server-b9d3e17bcecb6b08b077e2a7095ab1341c93556d.tar.gz
nextcloud-server-b9d3e17bcecb6b08b077e2a7095ab1341c93556d.zip
Hide settings when empty
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/views/Settings.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/src/views/Settings.vue b/apps/files/src/views/Settings.vue
index 0f8432445aa..2b2e14fd8fc 100644
--- a/apps/files/src/views/Settings.vue
+++ b/apps/files/src/views/Settings.vue
@@ -37,7 +37,9 @@
</NcAppSettingsSection>
<!-- Settings API-->
- <NcAppSettingsSection id="more-settings" :title="t('files', 'Additional settings')">
+ <NcAppSettingsSection v-if="settings.length !== 0"
+ id="more-settings"
+ :title="t('files', 'Additional settings')">
<template v-for="setting in settings">
<Setting :key="setting.name" :el="setting.el" />
</template>