Fix: switch to current library view instead of target library when moving

This commit is contained in:
Tiberiu Ichim 2026-02-22 20:16:51 +02:00
parent d8c89f2b8e
commit 5506026fd4

View file

@ -211,7 +211,7 @@ export default {
// Clear selection after batch move // Clear selection after batch move
this.$store.commit('globals/resetSelectedMediaItems') this.$store.commit('globals/resetSelectedMediaItems')
if (response.successCount > 0) { if (response.successCount > 0) {
this.$router.push(`/library/${this.selectedLibraryId}`) this.$router.push(`/library/${this.currentLibraryId}`)
} }
} else { } else {
// Single item move // Single item move
@ -219,7 +219,7 @@ export default {
if (response.success) { if (response.success) {
this.$toast.success(this.$strings.ToastItemMoved) this.$toast.success(this.$strings.ToastItemMoved)
this.$store.commit('setSelectedLibraryItem', null) this.$store.commit('setSelectedLibraryItem', null)
this.$router.push(`/library/${this.selectedLibraryId}`) this.$router.push(`/library/${this.currentLibraryId}`)
} }
} }
this.show = false this.show = false