This commit is contained in:
2025-11-04 11:37:01 +01:00
parent f523e5651b
commit dd378b3ad8
6 changed files with 216 additions and 112 deletions
+12 -1
View File
@@ -50,6 +50,7 @@ const DocumentsPanel = ({
onDocumentRename,
onEntryPointer = null,
onEntrySelection = null,
onInspectDocument = null,
tagLookupById,
activeCorrespondentIds = [],
onFocusedRowChange,
@@ -300,6 +301,7 @@ const DocumentsPanel = ({
const entry = getEntryByKey(activeRow.key);
if (entry?.document) {
handleDocumentActivate(entry.document, event);
onInspectDocument?.(entry.document.id, event);
}
}
}
@@ -341,6 +343,7 @@ const DocumentsPanel = ({
onEntrySelection,
onFocusedRowChange,
onFolderSelect,
onInspectDocument,
selectedEntries,
],
);
@@ -479,8 +482,16 @@ const DocumentsPanel = ({
event,
);
}
if (
typeof onInspectDocument === 'function'
&& !isPointerModifierEvent(event)
&& isPrimaryPointerEvent(event)
) {
onInspectDocument(doc.id, event);
}
},
[onEntryPointer],
[onEntryPointer, onInspectDocument],
);
const handleFolderClick = useCallback(