summaryrefslogtreecommitdiff
path: root/src/actions
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/actions
parent07195f3762b6a8a7dfb44c2231db58c5be13c43f (diff)
Connect simulation remove to API
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/simulations.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/simulations.js b/src/actions/simulations.js
index 314a2492..ddfacaf0 100644
--- a/src/actions/simulations.js
+++ b/src/actions/simulations.js
@@ -4,6 +4,7 @@ export const CLOSE_NEW_SIMULATION_MODAL = "CLOSE_SIMULATION_POPUP";
export const ADD_SIMULATION = "ADD_SIMULATION";
export const ADD_SIMULATION_SUCCEEDED = "ADD_SIMULATION_SUCCEEDED";
export const DELETE_SIMULATION = "DELETE_SIMULATION";
+export const DELETE_SIMULATION_SUCCEEDED = "DELETE_SIMULATION_SUCCEEDED";
export const OPEN_SIMULATION = "OPEN_SIMULATION";
export function setAuthVisibilityFilter(filter) {
@@ -50,6 +51,13 @@ export function deleteSimulation(id) {
};
}
+export function deleteSimulationSucceeded(id) {
+ return {
+ type: DELETE_SIMULATION_SUCCEEDED,
+ id
+ };
+}
+
export function openSimulation(id) {
return {
type: OPEN_SIMULATION,