Merge branch '13777-double-click-handler-in-project-panel'
[arvados-workbench2.git] / src / views-components / data-explorer / data-explorer.tsx
index f89bc65e9bd37db0a7f087bea34e27d6085f4a30..5ff8c66b20fd960441772c7243f9e5eefac66b3f 100644 (file)
@@ -16,13 +16,14 @@ interface Props {
     id: string;
     contextActions: ContextMenuActionGroup[];
     onRowClick: (item: any) => void;
+    onRowDoubleClick: (item: any) => void;
     onContextAction: (action: ContextMenuAction, item: any) => void;
 }
 
 const mapStateToProps = (state: RootState, { id, contextActions }: Props) =>
     getDataExplorer(state.dataExplorer, id);
 
-const mapDispatchToProps = (dispatch: Dispatch, { id, contextActions, onRowClick, onContextAction }: Props) => ({
+const mapDispatchToProps = (dispatch: Dispatch, { id, contextActions, onRowClick, onRowDoubleClick, onContextAction }: Props) => ({
     onSearch: (searchValue: string) => {
         dispatch(actions.SET_SEARCH_VALUE({ id, searchValue }));
     },
@@ -51,6 +52,8 @@ const mapDispatchToProps = (dispatch: Dispatch, { id, contextActions, onRowClick
 
     onRowClick,
 
+    onRowDoubleClick,
+
     onContextAction
 });