mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-17 09:19:38 +00:00
Add playlists to bookshelf item context menu
This commit is contained in:
parent
af0e02b9a2
commit
950d10091d
1 changed files with 12 additions and 0 deletions
|
|
@ -410,6 +410,10 @@ export default {
|
||||||
{
|
{
|
||||||
func: 'toggleFinished',
|
func: 'toggleFinished',
|
||||||
text: this.itemIsFinished ? this.$strings.MessageMarkAsNotFinished : this.$strings.MessageMarkAsFinished
|
text: this.itemIsFinished ? this.$strings.MessageMarkAsNotFinished : this.$strings.MessageMarkAsFinished
|
||||||
|
},
|
||||||
|
{
|
||||||
|
func: 'openPlaylists',
|
||||||
|
text: this.$strings.LabelAddToPlaylist
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (this.continueListeningShelf) {
|
if (this.continueListeningShelf) {
|
||||||
|
|
@ -448,6 +452,10 @@ export default {
|
||||||
text: this.$strings.LabelAddToCollection
|
text: this.$strings.LabelAddToCollection
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
items.push({
|
||||||
|
func: 'openPlaylists',
|
||||||
|
text: this.$strings.LabelAddToPlaylist
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (this.userCanUpdate) {
|
if (this.userCanUpdate) {
|
||||||
items.push({
|
items.push({
|
||||||
|
|
@ -739,6 +747,10 @@ export default {
|
||||||
this.store.commit('setSelectedLibraryItem', this.libraryItem)
|
this.store.commit('setSelectedLibraryItem', this.libraryItem)
|
||||||
this.store.commit('globals/setShowCollectionsModal', true)
|
this.store.commit('globals/setShowCollectionsModal', true)
|
||||||
},
|
},
|
||||||
|
openPlaylists() {
|
||||||
|
this.store.commit('globals/setSelectedPlaylistItems', [{ libraryItem: this.libraryItem, episode: this.recentEpisode }])
|
||||||
|
this.store.commit('globals/setShowPlaylistsModal', true)
|
||||||
|
},
|
||||||
createMoreMenu() {
|
createMoreMenu() {
|
||||||
if (!this.$refs.moreIcon) return
|
if (!this.$refs.moreIcon) return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue