mirror of
https://github.com/crater-invoice/crater.git
synced 2026-02-08 03:42:41 -05:00
Add New SweetAlert & Notification Components
This commit is contained in:
committed by
Mohit Panjwani
parent
3f7db2793f
commit
c3d3e5e35f
33
resources/assets/js/store/modules/notification/mutations.js
Normal file
33
resources/assets/js/store/modules/notification/mutations.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import * as types from './mutation-types'
|
||||
|
||||
export default {
|
||||
[types.SHOW_NOTIFICATION](state, data) {
|
||||
state.active = data
|
||||
},
|
||||
|
||||
[types.HIDE_NOTIFICATION](state, data) {
|
||||
state.active = data
|
||||
},
|
||||
|
||||
[types.SET_TITLE](state, data) {
|
||||
state.title = data
|
||||
},
|
||||
|
||||
[types.SET_AUTO_HIDE](state, data) {
|
||||
state.autoHide = data
|
||||
},
|
||||
|
||||
[types.SET_MESSAGE](state, data) {
|
||||
state.message = data
|
||||
},
|
||||
|
||||
[types.SET_NOTIFICATION_TYPE](state, data) {
|
||||
state.type = data
|
||||
},
|
||||
|
||||
[types.RESET_DATA](state) {
|
||||
state.active = false
|
||||
state.description = ''
|
||||
state.title = ''
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user