aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-01-08 15:57:34 +0100
committerLouis <louis@chmn.me>2024-01-08 23:15:38 +0100
commitd6cd3a6b49b53ce156dd4eb57472ef7d08702a0b (patch)
tree49d036ca30093670fdfee21261330fb3569f09d0 /apps/files
parentadfe883102f69cf1f5a05a3d6bb3616e81a4609f (diff)
downloadnextcloud-server-d6cd3a6b49b53ce156dd4eb57472ef7d08702a0b.tar.gz
nextcloud-server-d6cd3a6b49b53ce156dd4eb57472ef7d08702a0b.zip
Include grid view toggle in accessibility switch
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/views/Settings.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/src/views/Settings.vue b/apps/files/src/views/Settings.vue
index 6f0a3c5f8ea..d3eb318d4fa 100644
--- a/apps/files/src/views/Settings.vue
+++ b/apps/files/src/views/Settings.vue
@@ -38,7 +38,8 @@
@update:checked="setConfig('crop_image_previews', $event)">
{{ t('files', 'Crop image previews') }}
</NcCheckboxRadioSwitch>
- <NcCheckboxRadioSwitch :checked="userConfig.grid_view"
+ <NcCheckboxRadioSwitch v-if="enableGridView"
+ :checked="userConfig.grid_view"
@update:checked="setConfig('grid_view', $event)">
{{ t('files', 'Enable the grid view') }}
</NcCheckboxRadioSwitch>
@@ -99,6 +100,7 @@ import { generateRemoteUrl, generateUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
import { showError, showSuccess } from '@nextcloud/dialogs'
import { translate } from '@nextcloud/l10n'
+import { loadState } from '@nextcloud/initial-state'
import { useUserConfigStore } from '../store/userconfig.ts'
export default {
@@ -136,6 +138,7 @@ export default {
webdavDocs: 'https://docs.nextcloud.com/server/stable/go.php?to=user-webdav',
appPasswordUrl: generateUrl('/settings/user/security#generate-app-token-section'),
webdavUrlCopied: false,
+ enableGridView: (loadState('core', 'config', [])['enable_non-accessible_features'] ?? true),
}
},