1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-08 09:36:58 +00:00
bramw_baserow/premium/web-frontend/modules/baserow_premium/store/impersonating.js
2022-04-24 11:19:54 +00:00

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,
}