summaryrefslogtreecommitdiff
path: root/src/reducers/interaction-level.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/interaction-level.js
parentd5a92d3006561fd631279b68b23a1f8075b28bb8 (diff)
Implement first machine slot listing
Diffstat (limited to 'src/reducers/interaction-level.js')
-rw-r--r--src/reducers/interaction-level.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reducers/interaction-level.js b/src/reducers/interaction-level.js
index 5ca917c7..b6287aac 100644
--- a/src/reducers/interaction-level.js
+++ b/src/reducers/interaction-level.js
@@ -1,7 +1,7 @@
import {
GO_DOWN_ONE_INTERACTION_LEVEL,
GO_FROM_BUILDING_TO_ROOM,
- GO_FROM_ROOM_TO_OBJECT
+ GO_FROM_ROOM_TO_RACK
} from "../actions/interaction-level";
export function interactionLevel(state = {mode: "BUILDING"}, action) {
@@ -11,9 +11,9 @@ export function interactionLevel(state = {mode: "BUILDING"}, action) {
mode: "ROOM",
roomId: action.roomId
};
- case GO_FROM_ROOM_TO_OBJECT:
+ case GO_FROM_ROOM_TO_RACK:
return {
- mode: "OBJECT",
+ mode: "RACK",
roomId: state.roomId,
tileId: action.tileId
};
@@ -22,7 +22,7 @@ export function interactionLevel(state = {mode: "BUILDING"}, action) {
return {
mode: "BUILDING"
};
- } else if (state.mode === "OBJECT") {
+ } else if (state.mode === "RACK") {
return {
mode: "ROOM",
roomId: state.roomId