From 41e02cdab85ba5db92be7f7bea07ae1f20bcbdd9 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 22 Jul 2021 19:05:58 +0200 Subject: fix(web/ui): Fix creation of topologies This change fixes an issue with the creation of topologies in the frontend. Previously, the frontend relied on Redux to update the state. However, since we removed the reliance on Redux, we also need to create a new topology using the functions from React Query to actually send a request to the API server. --- .../opendc-web-ui/src/redux/actions/topologies.js | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 opendc-web/opendc-web-ui/src/redux/actions/topologies.js (limited to 'opendc-web/opendc-web-ui/src/redux/actions/topologies.js') diff --git a/opendc-web/opendc-web-ui/src/redux/actions/topologies.js b/opendc-web/opendc-web-ui/src/redux/actions/topologies.js deleted file mode 100644 index fc697cc2..00000000 --- a/opendc-web/opendc-web-ui/src/redux/actions/topologies.js +++ /dev/null @@ -1,27 +0,0 @@ -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, - projectId, - name, - duplicateId, - } -} - -export function storeTopology(topology, entities) { - return { - type: STORE_TOPOLOGY, - topology, - entities, - } -} -- cgit v1.2.3