summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/redux/actions/topologies.js
blob: 529e8663722bdabdf2a8723a56be1ab6c2647c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export const ADD_TOPOLOGY = 'ADD_TOPOLOGY'
export const STORE_TOPOLOGY = 'STORE_TOPOLOGY'

export function addTopology(projectId, name, duplicateId) {
    return {
        type: ADD_TOPOLOGY,
        projectId,
        name,
        duplicateId,
    }
}

export function storeTopology(entities) {
    return {
        type: STORE_TOPOLOGY,
        entities,
    }
}