diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-20 14:55:39 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-22 14:08:52 +0200 |
| commit | ebab0cc12e293a57cbc58d2dd51b3c9d7cd4ee92 (patch) | |
| tree | cec5e1e9e4a4a235b9726aafe61a2e6b0761f034 /opendc-web/opendc-web-ui/src/redux/actions | |
| parent | 6e3ad713111f35fc58bd2b7f1be5aeeb57eb94a8 (diff) | |
fix(ui): Load correct topology view
This change fixes an issue where the only the default topology view
would be shown to the user.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/redux/actions')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/redux/actions/projects.js | 8 | ||||
| -rw-r--r-- | opendc-web/opendc-web-ui/src/redux/actions/topologies.js | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/opendc-web/opendc-web-ui/src/redux/actions/projects.js b/opendc-web/opendc-web-ui/src/redux/actions/projects.js deleted file mode 100644 index 4fe6f6a8..00000000 --- a/opendc-web/opendc-web-ui/src/redux/actions/projects.js +++ /dev/null @@ -1,8 +0,0 @@ -export const OPEN_PROJECT_SUCCEEDED = 'OPEN_PROJECT_SUCCEEDED' - -export function openProjectSucceeded(id) { - return { - type: OPEN_PROJECT_SUCCEEDED, - id, - } -} diff --git a/opendc-web/opendc-web-ui/src/redux/actions/topologies.js b/opendc-web/opendc-web-ui/src/redux/actions/topologies.js index 529e8663..4888c4da 100644 --- a/opendc-web/opendc-web-ui/src/redux/actions/topologies.js +++ b/opendc-web/opendc-web-ui/src/redux/actions/topologies.js @@ -1,6 +1,14 @@ +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, |
