Fixed missing handlers for adding a chapter to a reading list from card details modal and adding series to collection from series detail. (#942)

This commit is contained in:
Joseph Milazzo
2022-01-15 08:14:44 -08:00
committed by GitHub
parent 9b8b66f7d6
commit eafa9457b3
2 changed files with 6 additions and 0 deletions
@@ -160,6 +160,9 @@ export class CardDetailsModalComponent implements OnInit {
case(Action.MarkAsUnread):
this.markChapterAsUnread(chapter);
break;
case(Action.AddToReadingList):
this.actionService.addChapterToReadingList(chapter, this.seriesId);
break;
default:
break;
}
@@ -253,6 +253,9 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {
case(Action.AddToReadingList):
this.actionService.addSeriesToReadingList(series, () => this.actionInProgress = false);
break;
case(Action.AddToCollection):
this.actionService.addMultipleSeriesToCollectionTag([series], () => this.actionInProgress = false);
break;
default:
break;
}