From 8218c3d3c21bfa7c4f3ee4872722b9b1261576fb Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 7 Sep 2017 19:27:13 +0200 Subject: Add machine mode with title and delete options --- src/containers/sidebars/topology/rack/MachineContainer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/containers/sidebars/topology/rack/MachineContainer.js') diff --git a/src/containers/sidebars/topology/rack/MachineContainer.js b/src/containers/sidebars/topology/rack/MachineContainer.js index 74a0bfbc..21ab06c4 100644 --- a/src/containers/sidebars/topology/rack/MachineContainer.js +++ b/src/containers/sidebars/topology/rack/MachineContainer.js @@ -1,4 +1,5 @@ import {connect} from "react-redux"; +import {goFromRackToMachine} from "../../../../actions/interaction-level"; import MachineComponent from "../../../../components/sidebars/topology/rack/MachineComponent"; const mapStateToProps = (state, ownProps) => { @@ -7,9 +8,9 @@ const mapStateToProps = (state, ownProps) => { }; }; -const mapDispatchToProps = dispatch => { +const mapDispatchToProps = (dispatch, ownProps) => { return { - onClick: () => undefined, // TODO implement transition to MACHINE mode + onClick: () => dispatch(goFromRackToMachine(ownProps.position)), }; }; -- cgit v1.2.3