fix(books): make "select all" actually select all not just the books loaded in (#533)

This commit is contained in:
brios
2026-04-22 17:27:38 -04:00
committed by Zach Yale
parent 1f5f99d958
commit 13f282fe72
8 changed files with 98 additions and 14 deletions
@@ -72,7 +72,12 @@ export class BookSelectionService {
}
}
selectAll(): void {
selectAll(allBookIds?: number[]): void {
if (allBookIds && allBookIds.length > 0) {
this._selectedBooks.set(new Set(allBookIds));
return;
}
if (!this.currentBooks || this.currentBooks.length === 0) return;
this._selectedBooks.update(current => {