diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-31 17:59:51 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:50 +0200 |
| commit | 3f736cd3db63f106eac02f220477b4a0f3b0eceb (patch) | |
| tree | 80afa73f8c4d281b2fccba8ad2baa7c10f7e7e84 /src/sagas/index.js | |
| parent | b17f1d8cb4815f57a4b7043cc91b867ec3cbc867 (diff) | |
Implement room creation
Diffstat (limited to 'src/sagas/index.js')
| -rw-r--r-- | src/sagas/index.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/sagas/index.js b/src/sagas/index.js index c6177cd4..7c1d921f 100644 --- a/src/sagas/index.js +++ b/src/sagas/index.js @@ -1,11 +1,23 @@ import {takeEvery} from "redux-saga/effects"; import {LOG_IN} from "../actions/auth"; import {ADD_SIMULATION, DELETE_SIMULATION} from "../actions/simulations"; -import {FETCH_LATEST_DATACENTER} from "../actions/topology"; +import { + ADD_TILE, + CANCEL_NEW_ROOM_CONSTRUCTION, + DELETE_TILE, + FETCH_LATEST_DATACENTER, + START_NEW_ROOM_CONSTRUCTION +} from "../actions/topology"; import {DELETE_CURRENT_USER, FETCH_AUTHORIZATIONS_OF_CURRENT_USER} from "../actions/users"; import {onDeleteCurrentUser} from "./profile"; import {onSimulationAdd, onSimulationDelete} from "./simulations"; -import {onFetchLatestDatacenter} from "./topology"; +import { + onAddTile, + onCancelNewRoomConstruction, + onDeleteTile, + onFetchLatestDatacenter, + onStartNewRoomConstruction +} from "./topology"; import {onFetchAuthorizationsOfCurrentUser, onFetchLoggedInUser} from "./users"; export default function* rootSaga() { @@ -15,4 +27,8 @@ export default function* rootSaga() { yield takeEvery(DELETE_SIMULATION, onSimulationDelete); yield takeEvery(DELETE_CURRENT_USER, onDeleteCurrentUser); yield takeEvery(FETCH_LATEST_DATACENTER, onFetchLatestDatacenter); + yield takeEvery(START_NEW_ROOM_CONSTRUCTION, onStartNewRoomConstruction); + yield takeEvery(CANCEL_NEW_ROOM_CONSTRUCTION, onCancelNewRoomConstruction); + yield takeEvery(ADD_TILE, onAddTile); + yield takeEvery(DELETE_TILE, onDeleteTile); } |
