2021-11-06 02:24:02 +01:00
|
|
|
|
|
|
|
export const state = () => ({
|
2021-11-27 23:01:53 +01:00
|
|
|
showBatchUserCollectionModal: false,
|
2021-11-07 02:31:46 +01:00
|
|
|
showUserCollectionsModal: false,
|
|
|
|
showEditCollectionModal: false,
|
2021-11-28 03:11:35 +01:00
|
|
|
selectedCollection: null,
|
|
|
|
showBookshelfTextureModal: false
|
2021-11-06 02:24:02 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
export const getters = {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export const actions = {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export const mutations = {
|
|
|
|
setShowUserCollectionsModal(state, val) {
|
2021-11-27 23:01:53 +01:00
|
|
|
state.showBatchUserCollectionModal = false
|
|
|
|
state.showUserCollectionsModal = val
|
|
|
|
},
|
|
|
|
setShowBatchUserCollectionsModal(state, val) {
|
|
|
|
state.showBatchUserCollectionModal = true
|
2021-11-06 02:24:02 +01:00
|
|
|
state.showUserCollectionsModal = val
|
2021-11-07 02:31:46 +01:00
|
|
|
},
|
|
|
|
setShowEditCollectionModal(state, val) {
|
|
|
|
state.showEditCollectionModal = val
|
|
|
|
},
|
|
|
|
setEditCollection(state, collection) {
|
|
|
|
state.selectedCollection = collection
|
|
|
|
state.showEditCollectionModal = true
|
2021-11-28 03:11:35 +01:00
|
|
|
},
|
|
|
|
setShowBookshelfTextureModal(state, val) {
|
|
|
|
state.showBookshelfTextureModal = val
|
2021-11-06 02:24:02 +01:00
|
|
|
}
|
|
|
|
}
|