Fix UI not removing volumes in the series detail view when deleting them
This commit is contained in:
parent
48e6b5a080
commit
a1b10fa77a
1 changed files with 6 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ import {CoverImageComponent} from "../../../_single-module/cover-image/cover-ima
|
||||||
import {DefaultModalOptions} from "../../../_models/default-modal-options";
|
import {DefaultModalOptions} from "../../../_models/default-modal-options";
|
||||||
import {LicenseService} from "../../../_services/license.service";
|
import {LicenseService} from "../../../_services/license.service";
|
||||||
import {PageBookmark} from "../../../_models/readers/page-bookmark";
|
import {PageBookmark} from "../../../_models/readers/page-bookmark";
|
||||||
|
import {VolumeRemovedEvent} from "../../../_models/events/volume-removed-event";
|
||||||
|
|
||||||
|
|
||||||
enum TabID {
|
enum TabID {
|
||||||
|
|
@ -500,6 +501,11 @@ export class SeriesDetailComponent implements OnInit, AfterContentChecked {
|
||||||
const removedEvent = event.payload as ChapterRemovedEvent;
|
const removedEvent = event.payload as ChapterRemovedEvent;
|
||||||
if (removedEvent.seriesId !== this.seriesId) return;
|
if (removedEvent.seriesId !== this.seriesId) return;
|
||||||
this.loadPageSource.next(false);
|
this.loadPageSource.next(false);
|
||||||
|
} else if (event.event === EVENTS.VolumeRemoved) {
|
||||||
|
const volumeRemoveEvent = event.payload as VolumeRemovedEvent;
|
||||||
|
if (volumeRemoveEvent.seriesId === this.seriesId) {
|
||||||
|
this.loadPageSource.next(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue