From 25affaf004d5f35d6525aaed3cbe0e354b3247f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 11:06:21 +0000 Subject: [PATCH] Fix: Show Print/Schedule buttons only when exactly 1 file is selected Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com> --- frontend/src/pages/FileManagerPage.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/FileManagerPage.tsx b/frontend/src/pages/FileManagerPage.tsx index eff8c2114..1ba3f3f86 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; - hasMultipleSelection: boolean; + showPrintScheduleButtons: 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, hasMultipleSelection, onSelect, onDelete, onDownload, onAddToQueue, onPrint, onRename, onGenerateThumbnail, thumbnailVersion, hasPermission, canModify, authEnabled, t }: FileCardProps) { +function FileCard({ file, isSelected, isMobile, showPrintScheduleButtons, 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, hasMultipleSelection, onSelect, <>