From 7cc476a6ed58a1f2b0a2b6c03a0707532a1fd03a Mon Sep 17 00:00:00 2001 From: Tiberiu Ichim Date: Fri, 6 Feb 2026 21:57:03 +0200 Subject: [PATCH] Fix bugs --- client/components/app/Appbar.vue | 2 ++ client/components/cards/LazyBookCard.vue | 1 + client/components/modals/item/MoveToLibraryModal.vue | 1 + 3 files changed, 4 insertions(+) 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