diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-09 11:02:15 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:00 +0200 |
| commit | 540bb00a64e4704a0c08459af2b158bdafd59a60 (patch) | |
| tree | ab0eb0a35b1b092236af16adee9c139a5ae5d645 /src/actions/topology/room.js | |
| parent | de24c69fe44df73c355a3ec481c7f146778cb4a6 (diff) | |
Move control of post-saga actions back to sagas
Diffstat (limited to 'src/actions/topology/room.js')
| -rw-r--r-- | src/actions/topology/room.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/actions/topology/room.js b/src/actions/topology/room.js index 07cf2b1d..884c7e84 100644 --- a/src/actions/topology/room.js +++ b/src/actions/topology/room.js @@ -1,6 +1,4 @@ import {findTileWithPosition} from "../../util/tile-calculations"; -import {goDownOneInteractionLevel} from "../interaction-level"; -import {addPropToStoreObject, removeIdFromStoreObjectListProp} from "../objects"; export const EDIT_ROOM_NAME = "EDIT_ROOM_NAME"; export const DELETE_ROOM = "DELETE_ROOM"; @@ -15,13 +13,6 @@ export function editRoomName(name) { }; } -export function editRoomNameSucceeded(name) { - return (dispatch, getState) => { - const {interactionLevel} = getState(); - dispatch(addPropToStoreObject("room", interactionLevel.roomId, {name})); - }; -} - export function startRackConstruction() { return { type: START_RACK_CONSTRUCTION @@ -55,12 +46,3 @@ export function deleteRoom() { type: DELETE_ROOM }; } - -export function deleteRoomSucceeded() { - return (dispatch, getState) => { - const {currentDatacenterId, interactionLevel} = getState(); - const currentRoomId = interactionLevel.roomId; - dispatch(goDownOneInteractionLevel()); - dispatch(removeIdFromStoreObjectListProp("datacenter", currentDatacenterId, "roomIds", currentRoomId)); - }; -} |
