Skip to content

Commit

Permalink
Fixed: Imported albums updating on Calendar
Browse files Browse the repository at this point in the history
(cherry picked from commit 5a3bc49392b700650a34536ff3794bce614f64a4)

Closes #4369
  • Loading branch information
markus101 authored and mynameisbogdan committed Dec 15, 2023
1 parent 3c321d5 commit 507924e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Calendar/CalendarConnector.js
Expand Up @@ -47,7 +47,7 @@ class CalendarConnector extends Component {
gotoCalendarToday
} = this.props;

registerPagePopulator(this.repopulate);
registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']);

if (useCurrentPage) {
fetchCalendar();
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/Components/SignalRConnector.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js
Expand Up @@ -53,7 +53,7 @@ class CutoffUnmetConnector extends Component {
gotoCutoffUnmetFirstPage
} = this.props;

registerPagePopulator(this.repopulate, ['trackFileUpdated']);
registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']);

if (useCurrentPage) {
fetchCutoffUnmet();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Wanted/Missing/MissingConnector.js
Expand Up @@ -50,7 +50,7 @@ class MissingConnector extends Component {
gotoMissingFirstPage
} = this.props;

registerPagePopulator(this.repopulate, ['trackFileUpdated']);
registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']);

if (useCurrentPage) {
fetchMissing();
Expand Down

0 comments on commit 507924e

Please sign in to comment.