desktop
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user