summaryrefslogtreecommitdiff
path: root/frontend/src/actions/topologies.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/actions/topologies.js')
-rw-r--r--frontend/src/actions/topologies.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/src/actions/topologies.js b/frontend/src/actions/topologies.js
new file mode 100644
index 00000000..c80ef6b2
--- /dev/null
+++ b/frontend/src/actions/topologies.js
@@ -0,0 +1,16 @@
+export const ADD_TOPOLOGY = 'ADD_TOPOLOGY'
+export const DELETE_TOPOLOGY = 'DELETE_TOPOLOGY'
+
+export function addTopology(topology) {
+ return {
+ type: ADD_TOPOLOGY,
+ topology,
+ }
+}
+
+export function deleteTopology(id) {
+ return {
+ type: DELETE_TOPOLOGY,
+ id,
+ }
+}