Add: collections no longer experimental & add collections in book card more menu

This commit is contained in:
advplyr 2021-11-13 16:06:32 -06:00
parent ac72ec1317
commit 416aa3bd60
4 changed files with 19 additions and 3 deletions

View file

@ -243,6 +243,10 @@ export default {
{
func: 'toggleRead',
text: `Mark as ${this.userIsRead ? 'Not Read' : 'Read'}`
},
{
func: 'openCollections',
text: 'Add to Collection'
}
]
if (this.userCanUpdate) {
@ -252,7 +256,6 @@ export default {
text: 'Tracks'
})
}
items.push({
func: 'showEditModalMatch',
text: 'Match'
@ -347,6 +350,10 @@ export default {
// More menu func
this.$store.commit('showEditModalOnTab', { audiobook: this.audiobook, tab: 'download' })
},
openCollections() {
this.$store.commit('setSelectedAudiobook', this.audiobook)
this.$store.commit('globals/setShowUserCollectionsModal', true)
},
createMoreMenu() {
if (!this.$refs.moreIcon) return