Merge pull request #45600 from nextcloud/backport/45538/stable28

[stable28] fix: Update `@nextcloud/files` to fix public link shares
This commit is contained in:
Ferdinand Thiessen 2024-06-01 16:48:41 +02:00 committed by GitHub
commit 7b087eeff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 9 additions and 8 deletions

View file

@ -176,7 +176,7 @@ export default defineComponent({
if (this.filesListWidth < 768) {
return false
}
return this.nodes.some(node => node.attributes.size !== undefined)
return this.nodes.some(node => node.size !== undefined)
},
sortedHeaders() {

View file

@ -27,7 +27,7 @@ import { File, Folder, davParsePermissions, davGetDefaultPropfind } from '@nextc
import { generateRemoteUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
import { getClient, rootPath } from './WebdavClient'
import { getClient, rootPath } from './WebdavClient.ts'
import { hashCode } from '../utils/hashUtils'
import logger from '../logger'

View file

@ -301,7 +301,7 @@ export default defineComponent({
// Filter based on the filterText obtained from nextcloud:unified-search.search event.
if (this.filterText) {
filteredDirContent = filteredDirContent.filter(node => {
return node.attributes.basename.toLowerCase().includes(this.filterText.toLowerCase())
return node.basename.toLowerCase().includes(this.filterText.toLowerCase())
})
console.debug('Files view filtered', filteredDirContent)
}

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

View file

@ -33,6 +33,7 @@ const ignorePatterns = [
'char-regex',
'hot-patcher',
'is-svg',
'layerr',
'mime',
'p-cancelable',
'p-limit',