fixed coollightbox

This commit is contained in:
2022-02-22 13:43:18 +01:00
parent 96b343b246
commit 99384d32c4
12 changed files with 2679 additions and 48 deletions

View File

@ -8,7 +8,9 @@ export default {
// initial state
state: {
pagetitle: null,
hamburgerMenuToggle: document.querySelector('input#header-block-right-toggle')
hamburgerMenuToggle: document.querySelector('input#header-block-right-toggle'),
coolLightBoxItems: null,
coolLightBoxIndex: null
},
// getters
@ -22,6 +24,12 @@ export default {
},
setHamMenuState (state, s) {
state.hamburgerMenuToggle.checked = s
},
setcoolLightBoxItems (state, items) {
state.coolLightBoxItems = items
},
setcoolLightBoxIndex (state, i) {
state.coolLightBoxIndex = i
}
},
@ -30,6 +38,14 @@ export default {
openCloseHamMenu ({ dispatch, commit, state }, s) {
console.log('openCloseHamMenu', s)
commit('setHamMenuState', s)
},
setcoolLightBoxIndex ({ dispatch, commit, state }, i) {
console.log('setcoolLightBoxIndex', i)
commit('setcoolLightBoxIndex', i)
},
setcoolLightBoxItems ({ dispatch, commit, state }, items) {
console.log('setcoolLightBoxItems', items)
commit('setcoolLightBoxItems', items)
}
}