Merge pull request #42023 from nextcloud/backport/42006/stable28

This commit is contained in:
Julius Härtl 2023-12-05 20:49:59 +01:00 committed by GitHub
commit 178ce1f3ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View file

@ -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
})
},
/**

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long