From d6cd3a6b49b53ce156dd4eb57472ef7d08702a0b Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 8 Jan 2024 15:57:34 +0100 Subject: Include grid view toggle in accessibility switch Signed-off-by: Louis Chemineau --- apps/files/src/views/Settings.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/files') 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') }} - {{ t('files', 'Enable the grid view') }} @@ -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), } }, -- cgit v1.2.3