summaryrefslogtreecommitdiff
path: root/src/actions/object-stores.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-15 23:24:28 +0300
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:42 +0200
commit91c8088e1d7def9242f60c708cd34f25dcb77d76 (patch)
treeb68065019692cea5cf6c3d14b811104aff2f0879 /src/actions/object-stores.js
parentd7512ace72448242b392299cf459c9c72c8dbee5 (diff)
Connect to backend and fetch initial project data
Diffstat (limited to 'src/actions/object-stores.js')
-rw-r--r--src/actions/object-stores.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/actions/object-stores.js b/src/actions/object-stores.js
new file mode 100644
index 00000000..08f3f0bd
--- /dev/null
+++ b/src/actions/object-stores.js
@@ -0,0 +1,24 @@
+export const ADD_TO_SIMULATION_STORE = "ADD_TO_SIMULATION_STORE";
+export const ADD_TO_AUTHORIZATION_STORE = "ADD_TO_AUTHORIZATION_STORE";
+export const ADD_TO_USER_STORE = "ADD_TO_USER_STORE";
+
+export function addToSimulationStore(simulation) {
+ return {
+ type: ADD_TO_SIMULATION_STORE,
+ simulation
+ };
+}
+
+export function addToAuthorizationStore(authorization) {
+ return {
+ type: ADD_TO_AUTHORIZATION_STORE,
+ authorization
+ };
+}
+
+export function addToUserStore(user) {
+ return {
+ type: ADD_TO_USER_STORE,
+ user
+ }
+}