mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-08 09:36:58 +00:00
30 lines
448 B
JavaScript
30 lines
448 B
JavaScript
export const state = () => ({
|
|
impersonating: false,
|
|
})
|
|
|
|
export const mutations = {
|
|
SET_IMPERSONATING(state, value) {
|
|
state.impersonating = value
|
|
},
|
|
}
|
|
|
|
export const actions = {
|
|
setImpersonating({ commit }, value) {
|
|
commit('SET_IMPERSONATING', value)
|
|
},
|
|
}
|
|
|
|
export const getters = {
|
|
getImpersonating(state) {
|
|
return state.impersonating
|
|
},
|
|
}
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations,
|
|
}
|