Skip to content

Commit

Permalink
Merge pull request #45600 from nextcloud/backport/45538/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: Update `@nextcloud/files` to fix public link shares
  • Loading branch information
susnux authored Jun 1, 2024
2 parents 8f7831d + 34f63f0 commit 7b087ee
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/components/FilesListVirtual.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/services/Files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/views/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion dist/files-init.js.map

Large diffs are not rendered by default.

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.

2 changes: 1 addition & 1 deletion dist/systemtags-init.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const ignorePatterns = [
'char-regex',
'hot-patcher',
'is-svg',
'layerr',
'mime',
'p-cancelable',
'p-limit',
Expand Down

0 comments on commit 7b087ee

Please sign in to comment.