Make book details dialog dismissible
This commit is contained in:
@@ -85,6 +85,7 @@ export class BookCardComponent implements OnInit {
|
|||||||
height: '835px',
|
height: '835px',
|
||||||
showHeader: false,
|
showHeader: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
|
dismissableMask: true,
|
||||||
data: {
|
data: {
|
||||||
book: book
|
book: book
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,10 +58,10 @@ export class BookSearcherComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
onBookClick(book: Book): void {
|
onBookClick(book: Book): void {
|
||||||
this.clearSearch();
|
this.clearSearch();
|
||||||
this.openBook(book.id);
|
this.openBookDetailsDialog(book.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
openBook(bookId: number): void {
|
openBookDetailsDialog(bookId: number): void {
|
||||||
this.bookService.getBookByIdFromAPI(bookId, true).subscribe(({
|
this.bookService.getBookByIdFromAPI(bookId, true).subscribe(({
|
||||||
next: (book) => {
|
next: (book) => {
|
||||||
this.dialogService.open(BookMetadataCenterComponent, {
|
this.dialogService.open(BookMetadataCenterComponent, {
|
||||||
@@ -72,6 +72,7 @@ export class BookSearcherComponent implements OnInit, OnDestroy {
|
|||||||
height: '835px',
|
height: '835px',
|
||||||
showHeader: false,
|
showHeader: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
|
dismissableMask: true,
|
||||||
data: {
|
data: {
|
||||||
book: book
|
book: book
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user