Add: Experimental collections edit, book list, collection cover #151

This commit is contained in:
advplyr 2021-11-06 20:31:46 -05:00
parent 28ccd4e568
commit 465e6869c0
31 changed files with 555 additions and 60 deletions

View file

@ -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) {