summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/redux/actions
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/redux/actions')
-rw-r--r--opendc-web/opendc-web-ui/src/redux/actions/projects.js8
-rw-r--r--opendc-web/opendc-web-ui/src/redux/actions/topologies.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/opendc-web/opendc-web-ui/src/redux/actions/projects.js b/opendc-web/opendc-web-ui/src/redux/actions/projects.js
deleted file mode 100644
index 4fe6f6a8..00000000
--- a/opendc-web/opendc-web-ui/src/redux/actions/projects.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export const OPEN_PROJECT_SUCCEEDED = 'OPEN_PROJECT_SUCCEEDED'
-
-export function openProjectSucceeded(id) {
- return {
- type: OPEN_PROJECT_SUCCEEDED,
- id,
- }
-}
diff --git a/opendc-web/opendc-web-ui/src/redux/actions/topologies.js b/opendc-web/opendc-web-ui/src/redux/actions/topologies.js
index 529e8663..4888c4da 100644
--- a/opendc-web/opendc-web-ui/src/redux/actions/topologies.js
+++ b/opendc-web/opendc-web-ui/src/redux/actions/topologies.js
@@ -1,6 +1,14 @@
+export const OPEN_TOPOLOGY = 'OPEN_TOPOLOGY'
export const ADD_TOPOLOGY = 'ADD_TOPOLOGY'
export const STORE_TOPOLOGY = 'STORE_TOPOLOGY'
+export function openTopology(id) {
+ return {
+ type: OPEN_TOPOLOGY,
+ id,
+ }
+}
+
export function addTopology(projectId, name, duplicateId) {
return {
type: ADD_TOPOLOGY,