summaryrefslogtreecommitdiff
path: root/src/api/sagas/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-16 23:10:32 +0300
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:43 +0200
commit9bfd652ff2c0bb5c0fa1fbce49e948bd4effa7b8 (patch)
tree3a19dd6bd49d3022a37e84bda1ad50cd8e2fbc97 /src/api/sagas/index.js
parent07195f3762b6a8a7dfb44c2231db58c5be13c43f (diff)
Connect simulation remove to API
Diffstat (limited to 'src/api/sagas/index.js')
-rw-r--r--src/api/sagas/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/sagas/index.js b/src/api/sagas/index.js
index f315f377..426b344a 100644
--- a/src/api/sagas/index.js
+++ b/src/api/sagas/index.js
@@ -1,12 +1,13 @@
import {takeEvery} from "redux-saga/effects";
import {LOG_IN} from "../../actions/auth";
-import {ADD_SIMULATION} from "../../actions/simulations";
+import {ADD_SIMULATION, DELETE_SIMULATION} from "../../actions/simulations";
import {FETCH_AUTHORIZATIONS_OF_CURRENT_USER} from "../../actions/users";
-import {onSimulationAdd} from "./simulations";
+import {onSimulationAdd, onSimulationDelete} from "./simulations";
import {onFetchAuthorizationsOfCurrentUser, onFetchLoggedInUser} from "./users";
export default function* rootSaga() {
yield takeEvery(LOG_IN, onFetchLoggedInUser);
yield takeEvery(FETCH_AUTHORIZATIONS_OF_CURRENT_USER, onFetchAuthorizationsOfCurrentUser);
yield takeEvery(ADD_SIMULATION, onSimulationAdd);
+ yield takeEvery(DELETE_SIMULATION, onSimulationDelete);
}