summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/rack/MachineContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/sidebars/topology/rack/MachineContainer.js')
-rw-r--r--src/containers/sidebars/topology/rack/MachineContainer.js5
1 files changed, 3 insertions, 2 deletions
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)),
};
};