Skip to content

Commit

Permalink
Merge pull request #42023 from nextcloud/backport/42006/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Dec 5, 2023
2 parents 4ece2f2 + 88e9925 commit 178ce1f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions apps/files/src/views/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 && file?.attributes?.hidden !== true && !file?.basename.startsWith('.')
}

return !!file
})
},

/**
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 178ce1f

Please sign in to comment.