Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Fixed an issue with Continue Reading not working after manually updat…
Browse files Browse the repository at this point in the history
…ing a volume with multiple chapters as read/unread (#211)
  • Loading branch information
majora2007 authored Jun 7, 2021
1 parent a62efd2 commit 15f54bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/series-detail/series-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export class SeriesDetailComponent implements OnInit {

this.readerService.markVolumeRead(seriesId, vol.id).subscribe(() => {
vol.pagesRead = vol.pages;
vol.chapters?.forEach(c => c.pagesRead = c.pages);
this.setContinuePoint();
this.toastr.success('Marked as Read');
});
Expand All @@ -256,6 +257,7 @@ export class SeriesDetailComponent implements OnInit {

forkJoin(vol.chapters?.map(chapter => this.readerService.bookmark(seriesId, vol.id, chapter.id, 0))).subscribe(results => {
vol.pagesRead = 0;
vol.chapters?.forEach(c => c.pagesRead = 0);
this.setContinuePoint();
this.toastr.success('Marked as Unread');
});
Expand Down

0 comments on commit 15f54bc

Please sign in to comment.