Allow items to be moved between libraries

This commit is contained in:
Tiberiu Ichim 2026-02-06 14:14:25 +02:00
parent a627dd5009
commit 37626b8d60
9 changed files with 450 additions and 1 deletions

View file

@ -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,