mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-04 15:09:44 +00:00
Multi move
This commit is contained in:
parent
e433cf9c05
commit
fb206e8198
5 changed files with 256 additions and 109 deletions
|
|
@ -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]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue