Fixed: Imported albums updating on Calendar

(cherry picked from commit 5a3bc49392b700650a34536ff3794bce614f64a4)

Closes #4369
pull/4374/head
Mark McDowall 5 months ago committed by Bogdan
parent 3c321d518f
commit 507924e626

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

@ -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

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

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

Loading…
Cancel
Save