irc_web/.svn/pristine/00/003f5ec4df52444f69f944be7f5...

34 lines
562 B
Plaintext

const getDefaultState = () => {
return {
reviewersQuery: null,
isEnglish: true
}
}
const state = getDefaultState
const mutations = {
RESET_STATE: (state) => {
Object.assign(state, getDefaultState())
},
SET_QUERYPARAM: (state, query) => {
state.reviewersQuery = query
},
SET_ISENGLISH: (state, isEnglish) => {
state.isEnglish = isEnglish
}
}
const actions = {
resetState({ commit }) {
commit('RESET_STATE')
}
}
export default {
namespaced: true,
state,
mutations,
actions
}