DocumentsPanel
This commit is contained in:
+7
-4
@@ -201,7 +201,7 @@ const DocumentThumbnailImage = ({
|
||||
);
|
||||
};
|
||||
|
||||
const DocumentsTable = ({
|
||||
const DocumentsPanel = ({
|
||||
currentFolderName,
|
||||
breadcrumbs,
|
||||
onRefresh,
|
||||
@@ -441,7 +441,10 @@ const DocumentsTable = ({
|
||||
}
|
||||
|
||||
if (entry.type === EntryType.document) {
|
||||
if (typeof onOpenDetailPanel === 'function') {
|
||||
const hasModifier = Boolean(
|
||||
event && (event.shiftKey || event.metaKey || event.ctrlKey || event.altKey),
|
||||
);
|
||||
if (!hasModifier && typeof onOpenDetailPanel === 'function') {
|
||||
onOpenDetailPanel();
|
||||
}
|
||||
return;
|
||||
@@ -1228,7 +1231,7 @@ const DocumentsTable = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default DocumentsTable;
|
||||
export default DocumentsPanel;
|
||||
export { DocumentThumbnailImage };
|
||||
|
||||
export const createDocumentsTableHeaderActions = ({
|
||||
@@ -1328,7 +1331,7 @@ export const createDocumentsSurface = ({
|
||||
onNavigateParent,
|
||||
actions,
|
||||
breadcrumbs,
|
||||
content: <DocumentsTable {...tableProps} showHeader={false} />,
|
||||
content: <DocumentsPanel {...tableProps} showHeader={false} />,
|
||||
detail,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user