Move book card to own component
WIP: Edit Book's shelf functionality
This commit is contained in:
@@ -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) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user