X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ceda57340f34d71fb4289b344e6ca839db06f5e7..7be9038d988e4dd566536be646769f720b1ae04c:/src/views/compute-node-panel/compute-node-panel.tsx diff --git a/src/views/compute-node-panel/compute-node-panel.tsx b/src/views/compute-node-panel/compute-node-panel.tsx index a4f22c8089..a531b2d0cb 100644 --- a/src/views/compute-node-panel/compute-node-panel.tsx +++ b/src/views/compute-node-panel/compute-node-panel.tsx @@ -5,7 +5,6 @@ import { RootState } from '~/store/store'; import { Dispatch } from 'redux'; import { connect } from 'react-redux'; -import { } from '~/store/compute-nodes/compute-nodes-actions'; import { ComputeNodePanelRoot, ComputeNodePanelRootDataProps, @@ -15,15 +14,16 @@ import { openComputeNodeContextMenu } from '~/store/context-menu/context-menu-ac const mapStateToProps = (state: RootState): ComputeNodePanelRootDataProps => { return { - computeNodes: state.computeNodes, - hasComputeNodes: state.computeNodes.length > 0 + resources: state.resources }; }; const mapDispatchToProps = (dispatch: Dispatch): ComputeNodePanelRootActionProps => ({ - openRowOptions: (event, computeNode) => { - dispatch(openComputeNodeContextMenu(event, computeNode)); - } + onContextMenu: (event, resourceUuid) => { + dispatch(openComputeNodeContextMenu(event, resourceUuid)); + }, + onItemClick: (resourceUuid: string) => { return; }, + onItemDoubleClick: uuid => { return; } }); export const ComputeNodePanel = connect(mapStateToProps, mapDispatchToProps)(ComputeNodePanelRoot); \ No newline at end of file