mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Allow items to be moved between libraries
This commit is contained in:
parent
a627dd5009
commit
37626b8d60
9 changed files with 450 additions and 1 deletions
|
|
@ -601,6 +601,10 @@ export default {
|
|||
}
|
||||
|
||||
if (this.userCanDelete) {
|
||||
items.push({
|
||||
func: 'openMoveToLibraryModal',
|
||||
text: this.$strings.ButtonMoveToLibrary
|
||||
})
|
||||
items.push({
|
||||
func: 'deleteLibraryItem',
|
||||
text: this.$strings.ButtonDelete
|
||||
|
|
@ -904,6 +908,10 @@ export default {
|
|||
this.store.commit('setSelectedLibraryItem', this.libraryItem)
|
||||
this.store.commit('globals/setShareModal', this.mediaItemShare)
|
||||
},
|
||||
openMoveToLibraryModal() {
|
||||
this.store.commit('setSelectedLibraryItem', this.libraryItem)
|
||||
this.store.commit('globals/setShowMoveToLibraryModal', true)
|
||||
},
|
||||
deleteLibraryItem() {
|
||||
const payload = {
|
||||
message: this.$strings.MessageConfirmDeleteLibraryItem,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue