From e9909159dc5db91eda12437e18c1474cae848af7 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 7 Sep 2017 11:38:42 +0200 Subject: Implement first machine slot listing --- src/reducers/construction.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/reducers/construction.js') diff --git a/src/reducers/construction.js b/src/reducers/construction.js index 33485842..772135ff 100644 --- a/src/reducers/construction.js +++ b/src/reducers/construction.js @@ -3,8 +3,8 @@ import { CANCEL_NEW_ROOM_CONSTRUCTION_SUCCEEDED, FINISH_NEW_ROOM_CONSTRUCTION, START_NEW_ROOM_CONSTRUCTION_SUCCEEDED, - START_OBJECT_CONSTRUCTION, - STOP_OBJECT_CONSTRUCTION + START_RACK_CONSTRUCTION, + STOP_RACK_CONSTRUCTION } from "../actions/topology"; export function currentRoomInConstruction(state = -1, action) { @@ -19,11 +19,11 @@ export function currentRoomInConstruction(state = -1, action) { } } -export function inObjectConstructionMode(state = false, action) { +export function inRackConstructionMode(state = false, action) { switch (action.type) { - case START_OBJECT_CONSTRUCTION: + case START_RACK_CONSTRUCTION: return true; - case STOP_OBJECT_CONSTRUCTION: + case STOP_RACK_CONSTRUCTION: return false; default: return state; @@ -32,5 +32,5 @@ export function inObjectConstructionMode(state = false, action) { export const construction = combineReducers({ currentRoomInConstruction, - inObjectConstructionMode, + inRackConstructionMode, }); -- cgit v1.2.3