diff --git a/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts b/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts index 6a8a6746a..3fd87297a 100644 --- a/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts +++ b/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts @@ -83,6 +83,7 @@ export class BookBrowserComponent implements OnInit { this.entity$.subscribe(entity => { this.entity = entity; + this.entityOptions = this.libraryShelfMenuService.initializeLibraryMenuItems(entity); this.setSelectedSortFromEntity(entity); }); } @@ -112,7 +113,6 @@ export class BookBrowserComponent implements OnInit { private fetchEntity(entityId: number, entityType: EntityType): Observable { if (entityType == EntityType.LIBRARY) { - this.libraryShelfMenuService.initializeLibraryMenuItems(this.entity); return this.fetchLibrary(entityId); } else if (EntityType.SHELF) { this.libraryShelfMenuService.initializeLibraryMenuItems(this.entity); diff --git a/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.html b/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.html index fd579b9f1..055451b31 100644 --- a/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.html +++ b/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.html @@ -1,8 +1,8 @@