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/construction-mode.js | |
| parent | f8f617c97fcb2df3dbefc9527d974151e367cb60 (diff) | |
Show experiment and trace data on left-hand sidebar
Diffstat (limited to 'src/reducers/construction-mode.js')
| -rw-r--r-- | src/reducers/construction-mode.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reducers/construction-mode.js b/src/reducers/construction-mode.js index 3e0b7542..e97c817e 100644 --- a/src/reducers/construction-mode.js +++ b/src/reducers/construction-mode.js @@ -1,4 +1,5 @@ import {combineReducers} from "redux"; +import {OPEN_EXPERIMENT_SUCCEEDED} from "../actions/experiments"; import { CANCEL_NEW_ROOM_CONSTRUCTION_SUCCEEDED, FINISH_NEW_ROOM_CONSTRUCTION, @@ -12,6 +13,7 @@ export function currentRoomInConstruction(state = -1, action) { return action.roomId; case CANCEL_NEW_ROOM_CONSTRUCTION_SUCCEEDED: case FINISH_NEW_ROOM_CONSTRUCTION: + case OPEN_EXPERIMENT_SUCCEEDED: return -1; default: return state; @@ -23,6 +25,7 @@ export function inRackConstructionMode(state = false, action) { case START_RACK_CONSTRUCTION: return true; case STOP_RACK_CONSTRUCTION: + case OPEN_EXPERIMENT_SUCCEEDED: return false; default: return state; |
