diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index d33bb65f1..543bc6b18 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -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) }, diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index a35cc0541..f96a83887 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -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) { diff --git a/client/components/modals/item/MoveToLibraryModal.vue b/client/components/modals/item/MoveToLibraryModal.vue index 26ff5f222..3868e04da 100644 --- a/client/components/modals/item/MoveToLibraryModal.vue +++ b/client/components/modals/item/MoveToLibraryModal.vue @@ -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