This commit is contained in:
Tiberiu Ichim 2026-02-06 21:57:03 +02:00
parent 4a34716e58
commit 7cc476a6ed
3 changed files with 4 additions and 0 deletions

View file

@ -239,6 +239,8 @@ export default {
}
},
batchMoveToLibrary() {
// Clear any single library item that might be lingering
this.$store.commit('setSelectedLibraryItem', null)
// Open the move to library modal - it will pick up items from selectedMediaItems
this.$store.commit('globals/setShowMoveToLibraryModal', true)
},

View file

@ -695,6 +695,7 @@ export default {
}
this.libraryItem = libraryItem
this.selected = this.store.state.globals.selectedMediaItems.some((i) => i.id === this.libraryItemId)
this.$nextTick(() => {
if (this.$refs.displayTitle) {

View file

@ -158,6 +158,7 @@ export default {
const response = await this.$axios.$post(`/api/items/${this.libraryItem.id}/move`, payload)
if (response.success) {
this.$toast.success(this.$strings.ToastItemMoved)
this.$store.commit('setSelectedLibraryItem', null)
}
}
this.show = false