fix(books): make "select all" actually select all not just the books loaded in (#533)
This commit is contained in:
@@ -848,10 +848,20 @@ export class BookBrowserComponent implements AfterViewInit {
|
||||
}
|
||||
|
||||
selectAllBooks(): void {
|
||||
this.bookSelectionService.selectAll();
|
||||
if (this.bookTableComponent) {
|
||||
this.bookTableComponent.selectAllBooks();
|
||||
}
|
||||
this.appBooksApi.fetchAllBookIds().pipe(take(1)).subscribe({
|
||||
next: (allIds) => {
|
||||
this.bookSelectionService.selectAll(allIds);
|
||||
if (this.bookTableComponent) {
|
||||
this.bookTableComponent.selectAllBooks();
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
this.bookSelectionService.selectAll();
|
||||
if (this.bookTableComponent) {
|
||||
this.bookTableComponent.selectAllBooks();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
deselectAllBooks(): void {
|
||||
|
||||
Reference in New Issue
Block a user