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) && (