From f119fc78dda4d1e828dde04f378a63a93e3a0a7e Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 2 Jul 2020 18:39:28 +0200 Subject: Add current progress on frontend port --- frontend/src/actions/topologies.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 frontend/src/actions/topologies.js (limited to 'frontend/src/actions/topologies.js') 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, + } +} -- cgit v1.2.3