Move book card to own component

WIP: Edit Book's shelf functionality
This commit is contained in:
aditya.chandel
2024-12-20 23:49:32 -07:00
parent c72301f6c6
commit 1abe138dd1
16 changed files with 259 additions and 101 deletions
@@ -27,6 +27,21 @@ export class AppMenuComponent implements OnInit {
];
});
shelfMenu = computed(() => {
const shelves = this.libraryBookService.shelves();
return [
{
label: 'Shelves',
separator: false,
items: shelves.map((shelf) => ({
label: shelf.name,
icon: 'pi pi-fw pi-heart',
routerLink: [`/shelf/${shelf.id}/books`],
})),
},
];
});
constructor(private libraryBookService: LibraryAndBookService) {
}