Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Nuxt.js user portal - Learning products browser and management - Member management interface - User authentication and roles - Multi-language support (NL/EN) - Vuex store for state management - Component-based architecture
25 lines
607 B
JavaScript
25 lines
607 B
JavaScript
export const state = () => ({
|
|
searchOverlay: false,
|
|
rightDrawer: {
|
|
display: false,
|
|
component: null,
|
|
subMenu: null,
|
|
},
|
|
});
|
|
|
|
export const mutations = {
|
|
|
|
TOGGLE_SEARCH_OVERLAY: (state, value = null) => {
|
|
state.searchOverlay = value
|
|
},
|
|
|
|
SWITCH_RIGHT_DRAWER: (state, value = true) => {
|
|
|
|
if (typeof value === 'boolean') { state.rightDrawer.display = value }
|
|
else {
|
|
state.rightDrawer.component = value.component
|
|
state.rightDrawer.subMenu = value.subMenu
|
|
state.rightDrawer.display = true
|
|
}
|
|
},
|
|
}; |