summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/redux/actions/topologies.js
blob: abfded7e7ef49ee8e203b86eac156d0553e1b219 (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 DELETE_TOPOLOGY = 'DELETE_TOPOLOGY'

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

export function deleteTopology(id) {
    return {
        type: DELETE_TOPOLOGY,
        id,
    }
}