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

25 lines
583 B
JavaScript

// ----------------------------
// Get Overview
// ----------------------------
export function getOverviewRequest (state) {
state.allOverview.loading = true
}
export function getOverviewSuccess (state, body) {
state.allOverview = { items: body, loading: false }
}
export function getOverviewFailure (state, error) {
state.allOverview = { error }
}
export function getOverviewClear (state) {
state.allOverview = {}
}
// ----------------------------
// Get Version
// ----------------------------
export function getVersionSuccess (state, body) {
state.version = body
}