mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-22 11:54:32 +02:00
Add: collections no longer experimental & add collections in book card more menu
This commit is contained in:
parent
ac72ec1317
commit
416aa3bd60
4 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue