From e2bdb6cea700714883a9c146eb8c4169b1302bb1 Mon Sep 17 00:00:00 2001 From: Muppetteer Date: Tue, 25 Nov 2025 22:43:33 +1100 Subject: [PATCH] Enable assign to shelf on shelves and magic shelves (#1628) --- .../book-browser/book-browser.component.html | 20 +++++++++---------- .../book-browser/book-browser.component.ts | 3 --- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html index 769283943..efc786d76 100644 --- a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html +++ b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html @@ -298,23 +298,21 @@ icon="pi pi-database"> } - @if (entityType === EntityType.LIBRARY || entityType === EntityType.ALL_BOOKS || entityType === EntityType.UNSHELVED) { - - - } + + @if (entityType === EntityType.SHELF) { } diff --git a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts index a9bcd5fb7..f4125c9c9 100644 --- a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts +++ b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts @@ -554,9 +554,6 @@ export class BookBrowserComponent implements OnInit { openShelfAssigner(): void { this.dynamicDialogRef = this.dialogHelperService.openShelfAssigner(this.selectedBooks); - this.dynamicDialogRef?.onClose.subscribe(() => { - this.selectedBooks = new Set(); - }); } lockUnlockMetadata(): void {