vue-storefront
Version:
A Vue.js, PWA eCommerce frontend
27 lines (26 loc) • 637 B
JavaScript
export default {
setOverlay (state, action) {
state.overlay = action === true
},
setLoader (state, action) {
state.loader = action === true
},
setMicrocart (state, action) {
state.microcart = action === true
},
setSidebar (state, action) {
state.sidebar = action === true
},
setSearchpanel (state, action) {
state.searchpanel = action === true
},
setAuthElem (state, action) {
state.authElem = action
},
setWishlist (state, action) {
state.wishlist = action === true
},
setOpenMyAccount (state, action) {
state.openMyAccount = action === true
}
}