1
0
Fork 0
traefik/webui/src/store/entrypoints/mutations.js
2019-08-26 18:15:41 +02:00

18 lines
371 B
JavaScript

// ----------------------------
// Get All
// ----------------------------
export function getAllRequest (state) {
state.all.loading = true
}
export function getAllSuccess (state, body) {
state.all = { items: body, loading: false }
}
export function getAllFailure (state, error) {
state.all = { error }
}
export function getAllClear (state) {
state.all = {}
}