]> source.dussan.org Git - nextcloud-server.git/commitdiff
Hide settings when empty
authorJohn Molakvoæ <skjnldsv@protonmail.com>
Wed, 4 Jan 2023 10:50:52 +0000 (11:50 +0100)
committerJohn Molakvoæ <skjnldsv@protonmail.com>
Wed, 4 Jan 2023 15:46:17 +0000 (16:46 +0100)
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
apps/files/src/views/Settings.vue

index 0f8432445aae8a76c8f6774bf15b6d1a7815eb9a..2b2e14fd8fcd48a6e560144c1b2eb782ec3da79b 100644 (file)
@@ -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>