From 9bfd652ff2c0bb5c0fa1fbce49e948bd4effa7b8 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 16 Aug 2017 23:10:32 +0300 Subject: Connect simulation remove to API --- src/api/sagas/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/api/sagas/index.js') 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); } -- cgit v1.2.3