mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 14:25:25 +02:00
Add: Experimental collections edit, book list, collection cover #151
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
<modals-edit-modal />
|
||||
<modals-user-collections-modal />
|
||||
<modals-edit-collection-modal />
|
||||
<readers-reader />
|
||||
</div>
|
||||
</template>
|
||||
@@ -189,6 +190,11 @@ export default {
|
||||
this.$store.commit('user/addUpdateCollection', collection)
|
||||
},
|
||||
collectionRemoved(collection) {
|
||||
if (this.$route.name.startsWith('collection')) {
|
||||
if (this.$route.params.id === collection.id) {
|
||||
this.$router.replace(`/library/${this.$store.state.libraries.currentLibraryId}/bookshelf/collections`)
|
||||
}
|
||||
}
|
||||
this.$store.commit('user/removeCollection', collection)
|
||||
},
|
||||
downloadToastClick(download) {
|
||||
|
||||
Reference in New Issue
Block a user