Merge branch 'karn-dev' into features/resources-store

This commit is contained in:
Unknown
2019-08-22 20:53:40 +02:00
9 changed files with 265 additions and 96 deletions

11
store/Sidebar.js Normal file
View File

@@ -0,0 +1,11 @@
export const state = () => ({
cardsShown: true
})
export const mutations = {
toggleCardsShown(state) {
console.log(state.cardsShown)
if (process.browser) localStorage.setItem('cardsShown', !state.cardsShown)
state.cardsShown = !state.cardsShown
}
}

7
store/index.js Normal file
View File

@@ -0,0 +1,7 @@
export const state = () => ({
})
export const mutations = {
}