Make book details dialog dismissible

This commit is contained in:
aditya.chandel
2025-01-12 20:58:52 -07:00
parent 55617084ca
commit 225f80b683
2 changed files with 4 additions and 2 deletions
@@ -85,6 +85,7 @@ export class BookCardComponent implements OnInit {
height: '835px',
showHeader: false,
closeOnEscape: true,
dismissableMask: true,
data: {
book: book
}
@@ -58,10 +58,10 @@ export class BookSearcherComponent implements OnInit, OnDestroy {
onBookClick(book: Book): void {
this.clearSearch();
this.openBook(book.id);
this.openBookDetailsDialog(book.id);
}
openBook(bookId: number): void {
openBookDetailsDialog(bookId: number): void {
this.bookService.getBookByIdFromAPI(bookId, true).subscribe(({
next: (book) => {
this.dialogService.open(BookMetadataCenterComponent, {
@@ -72,6 +72,7 @@ export class BookSearcherComponent implements OnInit, OnDestroy {
height: '835px',
showHeader: false,
closeOnEscape: true,
dismissableMask: true,
data: {
book: book
}