summaryrefslogtreecommitdiff
path: root/frontend/src/actions/modals
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-07 16:55:22 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:51 +0200
commit223e916997eb641a1662110b6de630a4cdfdf479 (patch)
tree90ca4364461f676db45f25e03d8f22fc32f9fdd8 /frontend/src/actions/modals
parent9ff1e3c6bae253372a468dbdc9b8369ab8dd2c6f (diff)
parentb810c4413079bf5aeb5374f1cd20e151a83530d0 (diff)
Merge branch 'feature/mongodb-migration' of github.com:atlarge-research/opendc-dev into feature/mongodb-migration
Diffstat (limited to 'frontend/src/actions/modals')
-rw-r--r--frontend/src/actions/modals/projects.js14
-rw-r--r--frontend/src/actions/modals/simulations.js14
-rw-r--r--frontend/src/actions/modals/topology.js12
3 files changed, 20 insertions, 20 deletions
diff --git a/frontend/src/actions/modals/projects.js b/frontend/src/actions/modals/projects.js
new file mode 100644
index 00000000..d1043cbb
--- /dev/null
+++ b/frontend/src/actions/modals/projects.js
@@ -0,0 +1,14 @@
+export const OPEN_NEW_PROJECT_MODAL = 'OPEN_NEW_PROJECT_MODAL'
+export const CLOSE_NEW_PROJECT_MODAL = 'CLOSE_PROJECT_MODAL'
+
+export function openNewProjectModal() {
+ return {
+ type: OPEN_NEW_PROJECT_MODAL,
+ }
+}
+
+export function closeNewProjectModal() {
+ return {
+ type: CLOSE_NEW_PROJECT_MODAL,
+ }
+}
diff --git a/frontend/src/actions/modals/simulations.js b/frontend/src/actions/modals/simulations.js
deleted file mode 100644
index 0ef1cbaa..00000000
--- a/frontend/src/actions/modals/simulations.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export const OPEN_NEW_SIMULATION_MODAL = 'OPEN_NEW_SIMULATION_MODAL'
-export const CLOSE_NEW_SIMULATION_MODAL = 'CLOSE_SIMULATION_MODAL'
-
-export function openNewSimulationModal() {
- return {
- type: OPEN_NEW_SIMULATION_MODAL,
- }
-}
-
-export function closeNewSimulationModal() {
- return {
- type: CLOSE_NEW_SIMULATION_MODAL,
- }
-}
diff --git a/frontend/src/actions/modals/topology.js b/frontend/src/actions/modals/topology.js
index 7b74e820..b5fecac1 100644
--- a/frontend/src/actions/modals/topology.js
+++ b/frontend/src/actions/modals/topology.js
@@ -1,5 +1,5 @@
-export const OPEN_CHANGE_TOPOLOGY_MODAL = 'OPEN_CHANGE_TOPOLOGY_MODAL'
-export const CLOSE_CHANGE_TOPOLOGY_MODAL = 'CLOSE_CHANGE_TOPOLOGY_MODAL'
+export const OPEN_NEW_TOPOLOGY_MODAL = 'OPEN_NEW_TOPOLOGY_MODAL'
+export const CLOSE_NEW_TOPOLOGY_MODAL = 'CLOSE_NEW_TOPOLOGY_MODAL'
export const OPEN_EDIT_ROOM_NAME_MODAL = 'OPEN_EDIT_ROOM_NAME_MODAL'
export const CLOSE_EDIT_ROOM_NAME_MODAL = 'CLOSE_EDIT_ROOM_NAME_MODAL'
export const OPEN_DELETE_ROOM_MODAL = 'OPEN_DELETE_ROOM_MODAL'
@@ -11,15 +11,15 @@ export const CLOSE_DELETE_RACK_MODAL = 'CLOSE_DELETE_RACK_MODAL'
export const OPEN_DELETE_MACHINE_MODAL = 'OPEN_DELETE_MACHINE_MODAL'
export const CLOSE_DELETE_MACHINE_MODAL = 'CLOSE_DELETE_MACHINE_MODAL'
-export function openChangeTopologyModal() {
+export function openNewTopologyModal() {
return {
- type: OPEN_CHANGE_TOPOLOGY_MODAL,
+ type: OPEN_NEW_TOPOLOGY_MODAL,
}
}
-export function closeChangeTopologyModal() {
+export function closeNewTopologyModal() {
return {
- type: CLOSE_CHANGE_TOPOLOGY_MODAL,
+ type: CLOSE_NEW_TOPOLOGY_MODAL,
}
}