diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-21 10:20:50 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:04 +0200 |
| commit | da861719c6433a1fc9346da958f0907e52d578ce (patch) | |
| tree | b171796fbfe17f0356bf6e32430223c67812a760 /src/reducers/interaction-level.js | |
| parent | f8f617c97fcb2df3dbefc9527d974151e367cb60 (diff) | |
Show experiment and trace data on left-hand sidebar
Diffstat (limited to 'src/reducers/interaction-level.js')
| -rw-r--r-- | src/reducers/interaction-level.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/reducers/interaction-level.js b/src/reducers/interaction-level.js index a3f3de7f..282e5096 100644 --- a/src/reducers/interaction-level.js +++ b/src/reducers/interaction-level.js @@ -1,12 +1,19 @@ +import {OPEN_EXPERIMENT_SUCCEEDED} from "../actions/experiments"; import { GO_DOWN_ONE_INTERACTION_LEVEL, GO_FROM_BUILDING_TO_ROOM, GO_FROM_RACK_TO_MACHINE, GO_FROM_ROOM_TO_RACK } from "../actions/interaction-level"; +import {OPEN_SIMULATION_SUCCEEDED} from "../actions/simulations"; export function interactionLevel(state = {mode: "BUILDING"}, action) { switch (action.type) { + case OPEN_EXPERIMENT_SUCCEEDED: + case OPEN_SIMULATION_SUCCEEDED: + return { + mode: "BUILDING" + }; case GO_FROM_BUILDING_TO_ROOM: return { mode: "ROOM", |
