23 lines
486 B
TypeScript
23 lines
486 B
TypeScript
import { GuiNotificationState } from './types'
|
|
import { Module } from 'vuex'
|
|
import { actions } from './actions'
|
|
import { mutations } from './mutations'
|
|
import { getters } from './getters'
|
|
|
|
export const getDefaultState = (): GuiNotificationState => {
|
|
return {
|
|
dismiss: [],
|
|
}
|
|
}
|
|
|
|
// initial state
|
|
const state = getDefaultState()
|
|
|
|
export const notifications: Module<GuiNotificationState, any> = {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations,
|
|
}
|