From 6e92f2d3e631f6654a5624997b4c04db2ad4f1a9 Mon Sep 17 00:00:00 2001 From: jelveh Date: Thu, 16 Jul 2026 19:43:37 -0700 Subject: [PATCH] fix: make Dashboard Files Download button work for a single selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In mobile select mode the floating action bar appears with one item selected (minCountForActionBar is 1) and shows an enabled Download button, but the click handler only acted when 2+ rows were selected — so downloading a single file did nothing. Gate on `> 0` instead. window.zipItems already normalizes a single item to an array, so the one-file case works. On desktop the bar only appears at 2+ selections, so this changes nothing there. --- src/gui/src/UI/Dashboard/TabFiles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/src/UI/Dashboard/TabFiles.js b/src/gui/src/UI/Dashboard/TabFiles.js index 62802d166..7c0c7b741 100644 --- a/src/gui/src/UI/Dashboard/TabFiles.js +++ b/src/gui/src/UI/Dashboard/TabFiles.js @@ -1291,7 +1291,7 @@ const TabFiles = { // Download button $actions.find('.download-btn').on('click', function () { const selectedRows = document.querySelectorAll('.files-tab .row.selected'); - if ( selectedRows.length >= 2 ) { + if ( selectedRows.length > 0 ) { window.zipItems(Array.from(selectedRows), _this.currentPath, true); } });