1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-12 06:53:24 +00:00

Fixed: Imported albums updating on Calendar

(cherry picked from commit 5a3bc49392b700650a34536ff3794bce614f64a4)

Closes #4369
This commit is contained in:
Mark McDowall 2023-12-14 17:26:53 -08:00 committed by Bogdan
parent 3c321d518f
commit 507924e626
4 changed files with 5 additions and 3 deletions

View file

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

View file

@ -216,6 +216,8 @@ class SignalRConnector extends Component {
this.props.dispatchUpdateItem({ section, ...body.resource });
} else if (body.action === 'deleted') {
this.props.dispatchRemoveItem({ section, id: body.resource.id });
repopulatePage('trackFileDeleted');
}
// Repopulate the page to handle recently imported file

View file

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

View file

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