diff options
Diffstat (limited to 'apps/files/src/views/FilesList.vue')
-rw-r--r-- | apps/files/src/views/FilesList.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index e3db205eef2..8655873f63d 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -63,7 +63,7 @@ </template> </BreadCrumbs> - <NcButton v-if="filesListWidth >= 512" + <NcButton v-if="filesListWidth >= 512 && enableGridView" :aria-label="gridViewButtonLabel" :title="gridViewButtonLabel" class="files-list__header-grid-button" @@ -132,6 +132,7 @@ import { showError } from '@nextcloud/dialogs' import { translate, translatePlural } from '@nextcloud/l10n' import { Type } from '@nextcloud/sharing' import { UploadPicker } from '@nextcloud/upload' +import { loadState } from '@nextcloud/initial-state' import { defineComponent } from 'vue' import LinkIcon from 'vue-material-design-icons/Link.vue' @@ -193,6 +194,9 @@ export default defineComponent({ const uploaderStore = useUploaderStore() const userConfigStore = useUserConfigStore() const viewConfigStore = useViewConfigStore() + + const enableGridView = (loadState('core', 'config', [])['enable_non-accessible_features'] ?? true) + return { filesStore, pathsStore, @@ -200,6 +204,7 @@ export default defineComponent({ uploaderStore, userConfigStore, viewConfigStore, + enableGridView, } }, |