summaryrefslogtreecommitdiff
path: root/src/actions/modals
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-07 19:27:13 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:58 +0200
commit8218c3d3c21bfa7c4f3ee4872722b9b1261576fb (patch)
tree16b8d0b8813aed0c846310a3fa4a01bd8ad18c60 /src/actions/modals
parenta7d2ac48224c4226003d67f77143738cc72aa016 (diff)
Add machine mode with title and delete options
Diffstat (limited to 'src/actions/modals')
-rw-r--r--src/actions/modals/topology.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/modals/topology.js b/src/actions/modals/topology.js
index 507c1de6..b8e297e0 100644
--- a/src/actions/modals/topology.js
+++ b/src/actions/modals/topology.js
@@ -6,6 +6,8 @@ export const OPEN_EDIT_RACK_NAME_MODAL = "OPEN_EDIT_RACK_NAME_MODAL";
export const CLOSE_EDIT_RACK_NAME_MODAL = "CLOSE_EDIT_RACK_NAME_MODAL";
export const OPEN_DELETE_RACK_MODAL = "OPEN_DELETE_RACK_MODAL";
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 openEditRoomNameModal() {
return {
@@ -54,3 +56,15 @@ export function closeDeleteRackModal() {
type: CLOSE_DELETE_RACK_MODAL
};
}
+
+export function openDeleteMachineModal() {
+ return {
+ type: OPEN_DELETE_MACHINE_MODAL
+ };
+}
+
+export function closeDeleteMachineModal() {
+ return {
+ type: CLOSE_DELETE_MACHINE_MODAL
+ };
+}