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