From 7acdc0048564c007bc82a43ea7538f4260e66358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Mon, 4 May 2026 11:28:12 +0200 Subject: [PATCH] fix: Fix rendering custom columns in file lists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CustomElementRender is used to render both IFileActions and IColumns. However, the API to render both of them is different, and currently CustomElementRender passes the arguments expected by IFileAction. Fortunately those arguments are a superset of those expected by IColumn, so they can be adapted when a CustomElementRender is used to render an IColumn. Signed-off-by: Daniel Calviño Sánchez --- apps/files/src/components/FileEntry.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index ca9871b8c71..63daf33ef9a 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -98,7 +98,7 @@ @@ -299,6 +299,12 @@ export default defineComponent({ view: this.activeView!, }) }, + + adaptColumnRenderToCustomElementRender(column) { + return ({ nodes, view }) => { + return column.render(nodes[0], view) + } + }, }, })