mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 15:53:04 -04:00
fix: Properly take show_hidden user setting into account for file listing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
52aadb5fd2
commit
6a938e1ae9
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue