From 17ae0a3fafd806a5a533bf1d51a3ac708a8cf978 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 1 Sep 2017 16:42:13 +0200 Subject: Implement room name edit --- src/actions/modals/profile.js | 14 ++++++++++++++ src/actions/modals/simulations.js | 14 ++++++++++++++ src/actions/modals/topology.js | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 src/actions/modals/profile.js create mode 100644 src/actions/modals/simulations.js create mode 100644 src/actions/modals/topology.js (limited to 'src/actions/modals') diff --git a/src/actions/modals/profile.js b/src/actions/modals/profile.js new file mode 100644 index 00000000..421e7602 --- /dev/null +++ b/src/actions/modals/profile.js @@ -0,0 +1,14 @@ +export const OPEN_DELETE_PROFILE_MODAL = "OPEN_DELETE_PROFILE_MODAL"; +export const CLOSE_DELETE_PROFILE_MODAL = "CLOSE_DELETE_PROFILE_MODAL"; + +export function openDeleteProfileModal() { + return { + type: OPEN_DELETE_PROFILE_MODAL + }; +} + +export function closeDeleteProfileModal() { + return { + type: CLOSE_DELETE_PROFILE_MODAL + }; +} diff --git a/src/actions/modals/simulations.js b/src/actions/modals/simulations.js new file mode 100644 index 00000000..53d2c565 --- /dev/null +++ b/src/actions/modals/simulations.js @@ -0,0 +1,14 @@ +export const OPEN_NEW_SIMULATION_MODAL = "OPEN_NEW_SIMULATION_MODAL"; +export const CLOSE_NEW_SIMULATION_MODAL = "CLOSE_SIMULATION_POPUP"; + +export function openNewSimulationModal() { + return { + type: OPEN_NEW_SIMULATION_MODAL + }; +} + +export function closeNewSimulationModal() { + return { + type: CLOSE_NEW_SIMULATION_MODAL + }; +} diff --git a/src/actions/modals/topology.js b/src/actions/modals/topology.js new file mode 100644 index 00000000..5e3fc803 --- /dev/null +++ b/src/actions/modals/topology.js @@ -0,0 +1,14 @@ +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 function openEditRoomNameModal() { + return { + type: OPEN_EDIT_ROOM_NAME_MODAL + }; +} + +export function closeEditRoomNameModal() { + return { + type: CLOSE_EDIT_ROOM_NAME_MODAL + }; +} -- cgit v1.2.3