introduce Card Covers

Signed-off-by: Johannes Szeibert <johannes@szeibert.de>
This commit is contained in:
Johannes Szeibert
2023-07-14 11:26:59 +00:00
committed by Julius Härtl
parent bf28940608
commit 6e1e6a8957
4 changed files with 124 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ export default new Vuex.Store({
showArchived: false,
navShown: localStorage.getItem('deck.navShown') === null || localStorage.getItem('deck.navShown') === 'true',
compactMode: localStorage.getItem('deck.compactMode') === 'true',
showCardCover: localStorage.getItem('deck.showCardCover') === 'true',
sidebarShown: false,
currentBoard: null,
currentCard: null,
@@ -229,6 +230,10 @@ export default new Vuex.Store({
state.compactMode = !state.compactMode
localStorage.setItem('deck.compactMode', state.compactMode)
},
toggleShowCardCover(state) {
state.showCardCover = !state.showCardCover
localStorage.setItem('deck.showCardCover', state.showCardCover)
},
setBoards(state, boards) {
state.boards = boards
},
@@ -439,6 +444,9 @@ export default new Vuex.Store({
toggleCompactMode({ commit }) {
commit('toggleCompactMode')
},
toggleShowCardCover({ commit }) {
commit('toggleShowCardCover')
},
setCurrentBoard({ commit }, board) {
commit('setCurrentBoard', board)
},