mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 02:45:02 +02:00
Fix:Remove collections when removing library
This commit is contained in:
parent
6f901defd6
commit
28feed6ea2
6 changed files with 55 additions and 38 deletions
|
@ -298,10 +298,10 @@ export default {
|
|||
this.$store.commit('user/updateMediaProgress', payload)
|
||||
},
|
||||
collectionAdded(collection) {
|
||||
this.$store.commit('user/addUpdateCollection', collection)
|
||||
this.$store.commit('libraries/addUpdateCollection', collection)
|
||||
},
|
||||
collectionUpdated(collection) {
|
||||
this.$store.commit('user/addUpdateCollection', collection)
|
||||
this.$store.commit('libraries/addUpdateCollection', collection)
|
||||
},
|
||||
collectionRemoved(collection) {
|
||||
if (this.$route.name.startsWith('collection')) {
|
||||
|
@ -309,7 +309,7 @@ export default {
|
|||
this.$router.replace(`/library/${this.$store.state.libraries.currentLibraryId}/bookshelf/collections`)
|
||||
}
|
||||
}
|
||||
this.$store.commit('user/removeCollection', collection)
|
||||
this.$store.commit('libraries/removeCollection', collection)
|
||||
},
|
||||
rssFeedOpen(data) {
|
||||
this.$store.commit('feeds/addFeed', data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue