summaryrefslogtreecommitdiff
path: root/src/reducers/construction.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-07 11:38:42 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:58 +0200
commite9909159dc5db91eda12437e18c1474cae848af7 (patch)
treef34e0ca56b666f6a4ab1022e58a6dcd84b779725 /src/reducers/construction.js
parentd5a92d3006561fd631279b68b23a1f8075b28bb8 (diff)
Implement first machine slot listing
Diffstat (limited to 'src/reducers/construction.js')
-rw-r--r--src/reducers/construction.js12
1 files changed, 6 insertions, 6 deletions
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,
});