Fixed: Imported episodes updating on Calendar

Closes #6240
This commit is contained in:
Mark McDowall 2023-12-14 17:26:53 -08:00
parent 0cd5bb50bd
commit 5a3bc49392
4 changed files with 5 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class CalendarConnector extends Component {
gotoCalendarToday gotoCalendarToday
} = this.props; } = this.props;
registerPagePopulator(this.repopulate); registerPagePopulator(this.repopulate, ['episodeFileUpdated', 'episodeFileDeleted']);
if (useCurrentPage) { if (useCurrentPage) {
fetchCalendar(); fetchCalendar();

View File

@ -197,6 +197,8 @@ class SignalRConnector extends Component {
repopulatePage('episodeFileUpdated'); repopulatePage('episodeFileUpdated');
} else if (body.action === 'deleted') { } else if (body.action === 'deleted') {
this.props.dispatchRemoveItem({ section, id: body.resource.id }); this.props.dispatchRemoveItem({ section, id: body.resource.id });
repopulatePage('episodeFileDeleted');
} }
}; };

View File

@ -49,7 +49,7 @@ class CutoffUnmetConnector extends Component {
gotoCutoffUnmetFirstPage gotoCutoffUnmetFirstPage
} = this.props; } = this.props;
registerPagePopulator(this.repopulate, ['episodeFileUpdated']); registerPagePopulator(this.repopulate, ['episodeFileUpdated', 'episodeFileDeleted']);
if (useCurrentPage) { if (useCurrentPage) {
fetchCutoffUnmet(); fetchCutoffUnmet();

View File

@ -46,7 +46,7 @@ class MissingConnector extends Component {
gotoMissingFirstPage gotoMissingFirstPage
} = this.props; } = this.props;
registerPagePopulator(this.repopulate, ['episodeFileUpdated']); registerPagePopulator(this.repopulate, ['episodeFileUpdated', 'episodeFileDeleted']);
if (useCurrentPage) { if (useCurrentPage) {
fetchMissing(); fetchMissing();