Przeglądaj źródła

Fix: Only show buttons for the selected file, not all files

Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com>
copilot-swe-agent[bot] 3 miesięcy temu
rodzic
commit
0d48aba520
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      frontend/src/pages/FileManagerPage.tsx

+ 1 - 1
frontend/src/pages/FileManagerPage.tsx

@@ -1985,7 +1985,7 @@ export function FileManagerPage() {
                     file={file}
                     file={file}
                     isSelected={selectedFiles.includes(file.id)}
                     isSelected={selectedFiles.includes(file.id)}
                     isMobile={isMobile}
                     isMobile={isMobile}
-                    showPrintScheduleButtons={selectedFiles.length === 1}
+                    showPrintScheduleButtons={selectedFiles.includes(file.id) && selectedFiles.length === 1}
                     t={t}
                     t={t}
                     onSelect={handleFileSelect}
                     onSelect={handleFileSelect}
                     onDelete={(id) => setDeleteConfirm({ type: 'file', id })}
                     onDelete={(id) => setDeleteConfirm({ type: 'file', id })}