summaryrefslogtreecommitdiff
path: root/src/actions/simulations.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/simulations.js')
-rw-r--r--src/actions/simulations.js56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/actions/simulations.js b/src/actions/simulations.js
index 145ceab2..6da7aa3a 100644
--- a/src/actions/simulations.js
+++ b/src/actions/simulations.js
@@ -6,47 +6,47 @@ export const DELETE_SIMULATION_SUCCEEDED = "DELETE_SIMULATION_SUCCEEDED";
export const OPEN_SIMULATION_SUCCEEDED = "OPEN_SIMULATION_SUCCEEDED";
export function setAuthVisibilityFilter(filter) {
- return {
- type: SET_AUTH_VISIBILITY_FILTER,
- filter
- };
+ return {
+ type: SET_AUTH_VISIBILITY_FILTER,
+ filter
+ };
}
export function addSimulation(name) {
- return (dispatch, getState) => {
- const {auth} = getState();
- dispatch({
- type: ADD_SIMULATION,
- name,
- userId: auth.userId
- });
- };
+ return (dispatch, getState) => {
+ const { auth } = getState();
+ dispatch({
+ type: ADD_SIMULATION,
+ name,
+ userId: auth.userId
+ });
+ };
}
export function addSimulationSucceeded(authorization) {
- return {
- type: ADD_SIMULATION_SUCCEEDED,
- authorization
- };
+ return {
+ type: ADD_SIMULATION_SUCCEEDED,
+ authorization
+ };
}
export function deleteSimulation(id) {
- return {
- type: DELETE_SIMULATION,
- id
- };
+ return {
+ type: DELETE_SIMULATION,
+ id
+ };
}
export function deleteSimulationSucceeded(id) {
- return {
- type: DELETE_SIMULATION_SUCCEEDED,
- id
- };
+ return {
+ type: DELETE_SIMULATION_SUCCEEDED,
+ id
+ };
}
export function openSimulationSucceeded(id) {
- return {
- type: OPEN_SIMULATION_SUCCEEDED,
- id
- };
+ return {
+ type: OPEN_SIMULATION_SUCCEEDED,
+ id
+ };
}