mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 08:33:58 -07: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
|
gotoCalendarToday
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
registerPagePopulator(this.repopulate);
|
registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']);
|
||||||
|
|
||||||
if (useCurrentPage) {
|
if (useCurrentPage) {
|
||||||
fetchCalendar();
|
fetchCalendar();
|
||||||
|
|
|
@ -216,6 +216,8 @@ class SignalRConnector extends Component {
|
||||||
this.props.dispatchUpdateItem({ section, ...body.resource });
|
this.props.dispatchUpdateItem({ section, ...body.resource });
|
||||||
} 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('trackFileDeleted');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Repopulate the page to handle recently imported file
|
// Repopulate the page to handle recently imported file
|
||||||
|
|
|
@ -53,7 +53,7 @@ class CutoffUnmetConnector extends Component {
|
||||||
gotoCutoffUnmetFirstPage
|
gotoCutoffUnmetFirstPage
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
registerPagePopulator(this.repopulate, ['trackFileUpdated']);
|
registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']);
|
||||||
|
|
||||||
if (useCurrentPage) {
|
if (useCurrentPage) {
|
||||||
fetchCutoffUnmet();
|
fetchCutoffUnmet();
|
||||||
|
|
|
@ -50,7 +50,7 @@ class MissingConnector extends Component {
|
||||||
gotoMissingFirstPage
|
gotoMissingFirstPage
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
registerPagePopulator(this.repopulate, ['trackFileUpdated']);
|
registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']);
|
||||||
|
|
||||||
if (useCurrentPage) {
|
if (useCurrentPage) {
|
||||||
fetchMissing();
|
fetchMissing();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue