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 {