fixed coollightbox
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user