From 67e3a05b8c90b7ebd506db768e427141fd958e66 Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Fri, 28 Dec 2018 13:01:57 +0100 Subject: [PATCH] Open details panel on file click Feature #14684 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- .../collection-panel-files/collection-panel-files.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views-components/collection-panel-files/collection-panel-files.ts b/src/views-components/collection-panel-files/collection-panel-files.ts index cfd32dcfac..7836e1f794 100644 --- a/src/views-components/collection-panel-files/collection-panel-files.ts +++ b/src/views-components/collection-panel-files/collection-panel-files.ts @@ -23,7 +23,7 @@ import { CollectionFileType, createCollectionDirectory } from "~/models/collecti import { openContextMenu, openCollectionFilesContextMenu } from '~/store/context-menu/context-menu-actions'; import { openUploadCollectionFilesDialog } from '~/store/collections/collection-upload-actions'; import { ResourceKind } from "~/models/resource"; -import { loadDetailsPanel } from '~/store/details-panel/details-panel-action'; +import { openDetailsPanel } from '~/store/details-panel/details-panel-action'; const memoizedMapStateToProps = () => { let prevState: CollectionPanelFilesState; @@ -58,7 +58,7 @@ const mapDispatchToProps = (dispatch: Dispatch): Pick(openCollectionFilesContextMenu(event)); }, onFileClick: (id) => { - dispatch(loadDetailsPanel(id)); + dispatch(openDetailsPanel(id)); }, }); -- 2.30.2