mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-30 05:01:10 -04:00
init crater
This commit is contained in:
13
resources/assets/js/store/modules/user/mutations.js
Normal file
13
resources/assets/js/store/modules/user/mutations.js
Normal file
@ -0,0 +1,13 @@
|
||||
import * as types from './mutation-types'
|
||||
|
||||
export default {
|
||||
[types.RESET_CURRENT_USER] (state, user) {
|
||||
state.currentUser = null
|
||||
},
|
||||
[types.BOOTSTRAP_CURRENT_USER] (state, user) {
|
||||
state.currentUser = user
|
||||
},
|
||||
[types.UPDATE_CURRENT_USER] (state, user) {
|
||||
state.currentUser = user
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user