Files
nuxt-frontend/store/navigation.js
Joris Slagter 791aebc346
Some checks failed
continuous-integration/drone/push Build is failing
Initial Nuxt frontend import
- 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
2025-12-02 17:48:48 +01:00

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
}
},
};