From c28fa602e58d29ef8a9d866b9ffd71f9319d5bf3 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 4 Feb 2026 11:05:12 +0000
Subject: [PATCH] Fix: Hide Print/Schedule buttons only when more than 1 file
selected
Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com>
---
frontend/src/pages/FileManagerPage.tsx | 10 +++++-----
static/assets/{index-LeR4yF6b.js => index-DVZX8_s6.js} | 2 +-
static/index.html | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
rename static/assets/{index-LeR4yF6b.js => index-DVZX8_s6.js} (98%)
diff --git a/frontend/src/pages/FileManagerPage.tsx b/frontend/src/pages/FileManagerPage.tsx
index 621f7813c..eff8c2114 100644
--- a/frontend/src/pages/FileManagerPage.tsx
+++ b/frontend/src/pages/FileManagerPage.tsx
@@ -902,7 +902,7 @@ interface FileCardProps {
file: LibraryFileListItem;
isSelected: boolean;
isMobile: boolean;
- hasAnySelection: boolean;
+ hasMultipleSelection: boolean;
onSelect: (id: number) => void;
onDelete: (id: number) => void;
onDownload: (id: number) => void;
@@ -917,7 +917,7 @@ interface FileCardProps {
t: TFunction;
}
-function FileCard({ file, isSelected, isMobile, hasAnySelection, onSelect, onDelete, onDownload, onAddToQueue, onPrint, onRename, onGenerateThumbnail, thumbnailVersion, hasPermission, canModify, authEnabled, t }: FileCardProps) {
+function FileCard({ file, isSelected, isMobile, hasMultipleSelection, onSelect, onDelete, onDownload, onAddToQueue, onPrint, onRename, onGenerateThumbnail, thumbnailVersion, hasPermission, canModify, authEnabled, t }: FileCardProps) {
const [showActions, setShowActions] = useState(false);
return (
@@ -996,7 +996,7 @@ function FileCard({ file, isSelected, isMobile, hasAnySelection, onSelect, onDel
<>
setShowActions(false)} />
- {!hasAnySelection && onPrint && isSlicedFilename(file.filename) && (
+ {!hasMultipleSelection && onPrint && isSlicedFilename(file.filename) && (