Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Fixed a bug where collections wouldn't update after updating collection tags from series detail (#411)

Joseph Milazzoe226c2b07489
diff --git a/UI/Web/src/app/series-detail/series-detail.component.ts b/UI/Web/src/app/series-detail/series-detail.component.ts
index dcfd9b5e2..af72632b4 100644
--- a/UI/Web/src/app/series-detail/series-detail.component.ts
+++ b/UI/Web/src/app/series-detail/series-detail.component.ts
@@ -103,15 +103,19 @@ export class SeriesDetailComponent implements OnInit {
const seriesId = parseInt(routeId, 10);
this.libraryId = parseInt(libraryId, 10);
- this.seriesService.getMetadata(seriesId).subscribe(metadata => {
- this.seriesMetadata = metadata;
- });
+ this.loadSeriesMetadata(seriesId);
this.libraryService.getLibraryType(this.libraryId).subscribe(type => {
this.libraryType = type;
this.loadSeries(seriesId);
});
}
+ loadSeriesMetadata(seriesId: number) {
+ this.seriesService.getMetadata(seriesId).subscribe(metadata => {
+ this.seriesMetadata = metadata;
+ });
+ }
+
handleSeriesActionCallback(action: Action, series: Series) {
this.actionInProgress = true;
switch(action) {
@@ -371,6 +375,7 @@ export class SeriesDetailComponent implements OnInit {
window.scrollTo(0, 0);
if (closeResult.success) {
this.loadSeries(this.series.id);
+ this.loadSeriesMetadata(this.series.id);
}
});
}