mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-16 10:22:55 -05: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