]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Update `@nextcloud/files` to 3.4.0 to fix public link shares
authorFerdinand Thiessen <opensource@fthiessen.de>
Mon, 27 May 2024 17:14:01 +0000 (19:14 +0200)
committerskjnldsv <skjnldsv@protonmail.com>
Fri, 7 Jun 2024 06:54:25 +0000 (08:54 +0200)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/src/components/FilesListVirtual.vue
apps/files/src/views/FilesList.vue
package.json

index ffa17240fe0017ccd4dc2f80a1e0de71fc536243..d31330f09503ce232be2484216ad57a97ad6b7c9 100644 (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() {
index 16566eb66f1b8944f108cd8ac6177d97471d74ed..bd42e80c3a70ebdfe5010c5a9dc0104d7e5969f6 100644 (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)
                        }
index 1c0ff20dcddf211d00400616e0f0766e1c5e1c9b..4287214f856b5bd5823b7967cec4b78e3226ebe0 100644 (file)
@@ -47,7 +47,7 @@
     "@nextcloud/capabilities": "^1.0.4",
     "@nextcloud/dialogs": "^5.2.0",
     "@nextcloud/event-bus": "^3.1.0",
-    "@nextcloud/files": "^3.1.0",
+    "@nextcloud/files": "^3.4.0",
     "@nextcloud/initial-state": "^2.0.0",
     "@nextcloud/l10n": "^2.1.0",
     "@nextcloud/logger": "^2.5.0",