Add double click handler
[arvados-workbench2.git] / src / views / workbench / workbench.tsx
index 11f36948dcb21707df604ab27c3c021b01161090..fac962689c5f0c00c617e367d4585fc462ca2254 100644 (file)
@@ -209,9 +209,11 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
     renderProjectPanel = (props: RouteComponentProps<{ id: string }>) => <ProjectPanel
         onItemRouteChange={itemId => this.props.dispatch<any>(setProjectItem(itemId, ItemMode.ACTIVE))}
         onItemClick={item =>  {
-            this.props.dispatch<any>(setProjectItem(item.uuid, ItemMode.ACTIVE));
             this.props.dispatch<any>(loadDetails(item.uuid, item.kind as ResourceKind));
         }}
+        onItemDoubleClick={item => {
+            this.props.dispatch<any>(setProjectItem(item.uuid, ItemMode.ACTIVE));
+        }}
         {...props} />
 
 }