summaryrefslogtreecommitdiff
path: root/frontend/src/actions/topologies.js
blob: c80ef6b2595434452bdd1718a1e2b4522a779e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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,
    }
}