1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/dashboard/store/dashboardApplication.js
2024-10-14 16:13:26 +00:00

36 lines
508 B
JavaScript

export const state = () => ({
editMode: false,
})
export const mutations = {
RESET(state) {
state.editMode = false
},
TOGGLE_EDIT_MODE(state) {
state.editMode = !state.editMode
},
}
export const actions = {
reset({ commit }) {
commit('RESET')
},
toggleEditMode({ commit }) {
commit('TOGGLE_EDIT_MODE')
},
}
export const getters = {
isEditMode(state) {
return state.editMode
},
}
export default {
namespaced: true,
state,
getters,
actions,
mutations,
}