From 4cfafeb17441ded21ee52d50db5109e91389964c Mon Sep 17 00:00:00 2001 From: Tiberiu Ichim Date: Fri, 6 Feb 2026 14:16:28 +0200 Subject: [PATCH] Add move to the item page --- artifacts/2026-02-06-move-to-library-feature.md | 1 + client/pages/item/_id/index.vue | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/artifacts/2026-02-06-move-to-library-feature.md b/artifacts/2026-02-06-move-to-library-feature.md index ad1dbd685..5240cb4d1 100644 --- a/artifacts/2026-02-06-move-to-library-feature.md +++ b/artifacts/2026-02-06-move-to-library-feature.md @@ -50,6 +50,7 @@ POST /api/items/:id/move | `client/components/modals/item/MoveToLibraryModal.vue` | **NEW** - Modal component | | `client/store/globals.js` | State: `showMoveToLibraryModal`, Mutation: `setShowMoveToLibraryModal` | | `client/components/cards/LazyBookCard.vue` | Menu item `openMoveToLibraryModal` in `moreMenuItems` | +| `client/pages/item/_id/index.vue` | Added "Move to library" to context menu | | `client/layouts/default.vue` | Added `` | | `client/strings/en-us.json` | Localization strings | diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 1d8f0f20b..27c1c11a3 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -424,6 +424,10 @@ export default { } if (this.userCanDelete) { + items.push({ + text: this.$strings.ButtonMoveToLibrary, + action: 'move' + }) items.push({ text: this.$strings.ButtonDelete, action: 'delete' @@ -771,6 +775,9 @@ export default { this.downloadLibraryItem() } else if (action === 'delete') { this.deleteLibraryItem() + } else if (action === 'move') { + this.$store.commit('setSelectedLibraryItem', this.libraryItem) + this.$store.commit('globals/setShowMoveToLibraryModal', true) } else if (action === 'sendToDevice') { this.sendToDevice(data) } else if (action === 'share') {