Add author metadata fetching via Audnexus with browser, detail, and editor pages (#2843)
This commit is contained in:
@@ -14,7 +14,9 @@ export class CustomReuseStrategy implements RouteReuseStrategy {
|
||||
'unshelved-books',
|
||||
'library/:libraryId/books',
|
||||
'shelf/:shelfId/books',
|
||||
'magic-shelf/:magicShelfId/books'
|
||||
'magic-shelf/:magicShelfId/books',
|
||||
'authors',
|
||||
'series'
|
||||
];
|
||||
|
||||
private readonly BOOK_DETAILS_PATH = 'book/:bookId';
|
||||
@@ -29,10 +31,6 @@ export class CustomReuseStrategy implements RouteReuseStrategy {
|
||||
return this.BOOK_BROWSER_PATHS.includes(path || '');
|
||||
}
|
||||
|
||||
private isBookDetailsRoute(route: ActivatedRouteSnapshot): boolean {
|
||||
return route.routeConfig?.path === this.BOOK_DETAILS_PATH;
|
||||
}
|
||||
|
||||
shouldDetach(route: ActivatedRouteSnapshot): boolean {
|
||||
return this.isBookBrowserRoute(route);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user