merged from upstream

This commit is contained in:
David Leimroth 2022-02-10 15:02:39 +01:00
commit 7b8759a829
25 changed files with 168 additions and 220 deletions

View file

@ -1,5 +1,7 @@
export const state = () => ({
isMobile: false,
isMobileLandscape: false,
showBatchUserCollectionModal: false,
showUserCollectionsModal: false,
showEditCollectionModal: false,
@ -7,15 +9,13 @@ export const state = () => ({
showBookshelfTextureModal: false
})
export const getters = {
}
export const actions = {
}
export const getters = {}
export const mutations = {
updateWindowSize(state, { width, height }) {
state.isMobile = width < 768 || height < 768
state.isMobileLandscape = state.isMobile && height > width
},
setShowUserCollectionsModal(state, val) {
state.showBatchUserCollectionModal = false
state.showUserCollectionsModal = val