mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-12 13:34:24 +02:00
Update:Rename UserCollections to Collections
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
export const state = () => ({
|
||||
isMobile: false,
|
||||
isMobileLandscape: false,
|
||||
showBatchUserCollectionModal: false,
|
||||
showUserCollectionsModal: false,
|
||||
showBatchCollectionModal: false,
|
||||
showCollectionsModal: false,
|
||||
showEditCollectionModal: false,
|
||||
showEditPodcastEpisode: false,
|
||||
showViewPodcastEpisodeModal: false,
|
||||
@@ -68,13 +68,13 @@ export const mutations = {
|
||||
state.isMobile = width < 640 || height < 640
|
||||
state.isMobileLandscape = state.isMobile && height > width
|
||||
},
|
||||
setShowUserCollectionsModal(state, val) {
|
||||
state.showBatchUserCollectionModal = false
|
||||
state.showUserCollectionsModal = val
|
||||
setShowCollectionsModal(state, val) {
|
||||
state.showBatchCollectionModal = false
|
||||
state.showCollectionsModal = val
|
||||
},
|
||||
setShowBatchUserCollectionsModal(state, val) {
|
||||
state.showBatchUserCollectionModal = true
|
||||
state.showUserCollectionsModal = val
|
||||
setShowBatchCollectionsModal(state, val) {
|
||||
state.showBatchCollectionModal = true
|
||||
state.showCollectionsModal = val
|
||||
},
|
||||
setShowEditCollectionModal(state, val) {
|
||||
state.showEditCollectionModal = val
|
||||
|
||||
@@ -114,7 +114,7 @@ export const actions = {
|
||||
return false
|
||||
})
|
||||
},
|
||||
loadUserCollections({ state, commit }) {
|
||||
loadCollections({ state, commit }) {
|
||||
if (state.collectionsLoaded) {
|
||||
console.log('Collections already loaded')
|
||||
return state.collections
|
||||
|
||||
Reference in New Issue
Block a user