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:
parent
3c321d518f
commit
507924e626
4 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue