Multi move

This commit is contained in:
Tiberiu Ichim 2026-02-06 14:51:54 +02:00
parent e433cf9c05
commit fb206e8198
5 changed files with 256 additions and 109 deletions

View file

@ -189,6 +189,14 @@ export default {
})
}
// Move to library option - only show if user has delete permission (same as delete)
if (this.userCanDelete) {
options.push({
text: this.$strings.LabelMoveToLibrary,
action: 'move-to-library'
})
}
return options
}
},
@ -226,8 +234,14 @@ export default {
this.batchRescan()
} else if (action === 'download') {
this.batchDownload()
} else if (action === 'move-to-library') {
this.batchMoveToLibrary()
}
},
batchMoveToLibrary() {
// Open the move to library modal - it will pick up items from selectedMediaItems
this.$store.commit('globals/setShowMoveToLibraryModal', true)
},
async batchRescan() {
const payload = {
message: this.$getString('MessageConfirmReScanLibraryItems', [this.selectedMediaItems.length]),