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