From da861719c6433a1fc9346da958f0907e52d578ce Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 21 Sep 2017 10:20:50 +0200 Subject: Show experiment and trace data on left-hand sidebar --- src/reducers/interaction-level.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/reducers/interaction-level.js') 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", -- cgit v1.2.3