mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-28 21:19:42 +00:00
Fix: ensure batch move correctly switches to the current library view
This commit is contained in:
parent
5506026fd4
commit
8f030f2b04
1 changed files with 4 additions and 1 deletions
|
|
@ -208,10 +208,13 @@ export default {
|
|||
if (response.failCount > 0) {
|
||||
this.$toast.warning(this.$getString('ToastItemsMoveFailed', [response.failCount]))
|
||||
}
|
||||
// Store the current library ID before clearing the selected items so we know where to redirect to
|
||||
const redirectLibraryId = this.currentLibraryId
|
||||
|
||||
// Clear selection after batch move
|
||||
this.$store.commit('globals/resetSelectedMediaItems')
|
||||
if (response.successCount > 0) {
|
||||
this.$router.push(`/library/${this.currentLibraryId}`)
|
||||
this.$router.push(`/library/${redirectLibraryId}`)
|
||||
}
|
||||
} else {
|
||||
// Single item move
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue