Move book metadata view to tab and remove the routed page

This commit is contained in:
aditya.chandel
2025-01-04 17:59:26 -07:00
parent 82b7cca0a5
commit 77fb080757
16 changed files with 156 additions and 343 deletions
@@ -115,10 +115,10 @@ export class BookService {
);
}
readBook(book: Book): void {
const url = `/pdf-viewer/book/${book.id}`;
readBook(bookId: number): void {
const url = `/pdf-viewer/book/${bookId}`;
window.open(url, '_blank');
this.updateLastReadTime(book.id).subscribe({
this.updateLastReadTime(bookId).subscribe({
error: err => console.error('Failed to update last read time', err),
});
}
@@ -202,6 +202,7 @@ export class BookService {
}
updateMetadata(bookId: number, bookMetadata: BookMetadataBI): Observable<BookMetadata> {
console.log(bookMetadata)
return this.http.put<BookMetadata>(`${this.url}/${bookId}/metadata`, bookMetadata);
}