From 1f4616cbf9c82e4976d1f4b4c018d5e9ff83ad10 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 8 Nov 2017 10:28:33 +0100 Subject: Implement room editing Allows for rooms to be edited from the room context menu. Fixes #24 --- src/containers/app/sidebars/topology/room/RackConstructionContainer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/containers/app/sidebars/topology/room/RackConstructionContainer.js') diff --git a/src/containers/app/sidebars/topology/room/RackConstructionContainer.js b/src/containers/app/sidebars/topology/room/RackConstructionContainer.js index 0fc22b09..c784d3ae 100644 --- a/src/containers/app/sidebars/topology/room/RackConstructionContainer.js +++ b/src/containers/app/sidebars/topology/room/RackConstructionContainer.js @@ -7,7 +7,8 @@ import RackConstructionComponent from "../../../../../components/app/sidebars/to const mapStateToProps = state => { return { - inRackConstructionMode: state.construction.inRackConstructionMode + inRackConstructionMode: state.construction.inRackConstructionMode, + isEditingRoom: state.construction.currentRoomInConstruction !== -1 }; }; -- cgit v1.2.3