mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
27 lines
523 B
JavaScript
27 lines
523 B
JavaScript
|
|
export const state = () => ({
|
|
showUserCollectionsModal: false,
|
|
showEditCollectionModal: false,
|
|
selectedCollection: null
|
|
})
|
|
|
|
export const getters = {
|
|
|
|
}
|
|
|
|
export const actions = {
|
|
|
|
}
|
|
|
|
export const mutations = {
|
|
setShowUserCollectionsModal(state, val) {
|
|
state.showUserCollectionsModal = val
|
|
},
|
|
setShowEditCollectionModal(state, val) {
|
|
state.showEditCollectionModal = val
|
|
},
|
|
setEditCollection(state, collection) {
|
|
state.selectedCollection = collection
|
|
state.showEditCollectionModal = true
|
|
}
|
|
} |