.cardsActive -> &Active in sass, rename variable names

This commit is contained in:
Kevin
2019-09-06 13:23:43 +02:00
parent 1e499c7758
commit b936bf1ab3
4 changed files with 19 additions and 19 deletions

View File

@@ -1,14 +1,14 @@
export const state = () => ({
cardsShown: true
areCardsVisible: true
})
export const getters = {
isCardsShown: state => state.cardsShown
areCardsVisible: state => state.areCardsVisible
}
export const mutations = {
toggleCardsShown(state) {
if (process.browser) localStorage.setItem('cardsShown', !state.cardsShown)
state.cardsShown = !state.cardsShown
toggleCardsVisible(state) {
if (process.browser) localStorage.setItem('areCardsVisible', !state.areCardsVisible)
state.areCardsVisible = !state.areCardsVisible
}
}