diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-12-04 12:35:43 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-12-05 16:58:13 +0100 |
commit | 6a938e1ae958e37301dc14aba999f2eac0c9b28f (patch) | |
tree | 2db8db8dc523dae854c016f69ba73663dcd1202f /apps/files | |
parent | 52aadb5fd2a728174edd8a63a4d48a9497b6a9fa (diff) | |
download | nextcloud-server-6a938e1ae958e37301dc14aba999f2eac0c9b28f.tar.gz nextcloud-server-6a938e1ae958e37301dc14aba999f2eac0c9b28f.zip |
fix: Properly take show_hidden user setting into account for file listing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/views/FilesList.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index 42423e1f451..6aeb308677c 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -281,10 +281,16 @@ export default defineComponent({ }, dirContents(): Node[] { + const showHidden = this.userConfigStore?.userConfig.show_hidden return (this.currentFolder?._children || []) .map(this.getNode) - .filter(file => file) - .filter(file => file?.attributes?.hidden !== true) + .filter(file => { + if (!showHidden) { + return file?.attributes?.hidden !== true && !file?.basename.startsWith('.') + } + + return true + }) }, /** |