mirror of
https://github.com/crater-invoice/crater.git
synced 2026-02-09 20:32:40 -05:00
build version 400
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
import * as types from './mutation-types'
|
||||
|
||||
export default {
|
||||
[types.RESET_CURRENT_USER] (state, user) {
|
||||
[types.RESET_CURRENT_USER](state, user) {
|
||||
state.currentUser = null
|
||||
},
|
||||
[types.BOOTSTRAP_CURRENT_USER] (state, user) {
|
||||
|
||||
[types.BOOTSTRAP_CURRENT_USER](state, user) {
|
||||
state.currentUser = user
|
||||
},
|
||||
[types.UPDATE_CURRENT_USER] (state, user) {
|
||||
|
||||
[types.UPDATE_CURRENT_USER](state, user) {
|
||||
state.currentUser = user
|
||||
}
|
||||
},
|
||||
|
||||
[types.UPDATE_USER_AVATAR](state, data) {
|
||||
if (state.currentUser) {
|
||||
state.currentUser.avatar = data.avatar
|
||||
}
|
||||
},
|
||||
|
||||
[types.SET_DEFAULT_LANGUAGE](state, data) {
|
||||
window.i18n.locale = data
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user