Added shelf functionality

This commit is contained in:
aditya.chandel
2024-12-21 16:39:30 -07:00
parent 1abe138dd1
commit e68117c1bc
12 changed files with 216 additions and 30 deletions
@@ -26,10 +26,8 @@ export class BookCardComponent implements OnInit {
constructor(
private libraryBookService: LibraryAndBookService, private router: Router,
private dialogService: DialogService) {
}
coverImageSrc(book: Book): string {
return this.libraryBookService.getBookCoverUrl(book.id);
}
@@ -61,10 +59,10 @@ export class BookCardComponent implements OnInit {
private openShelfDialog(book: Book) {
this.dialogService.open(ShelfAssignerComponent, {
header: 'Edit Shelves for Book: ' + book.metadata.title,
header: 'Update Shelves: ' + book.metadata.title,
modal: true,
width: '50%',
height: '75%',
width: '30%',
height: '70%',
contentStyle: {overflow: 'auto'},
baseZIndex: 10,
data: {