mirror of
https://github.com/Readarr/Readarr
synced 2025-12-24 01:03:32 +01:00
Fixed: Imported books updating on Calendar
(cherry picked from commit 5a3bc49392b700650a34536ff3794bce614f64a4) Closes #3126
This commit is contained in:
parent
7451a66365
commit
c412701a3d
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, ['bookFileUpdated', 'bookFileDeleted']);
|
||||
|
||||
if (useCurrentPage) {
|
||||
fetchCalendar();
|
||||
|
|
|
|||
|
|
@ -202,6 +202,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('bookFileDeleted');
|
||||
}
|
||||
|
||||
// Repopulate the page to handle recently imported file
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class CutoffUnmetConnector extends Component {
|
|||
gotoCutoffUnmetFirstPage
|
||||
} = this.props;
|
||||
|
||||
registerPagePopulator(this.repopulate, ['bookFileUpdated']);
|
||||
registerPagePopulator(this.repopulate, ['bookFileUpdated', 'bookFileDeleted']);
|
||||
|
||||
if (useCurrentPage) {
|
||||
fetchCutoffUnmet();
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class MissingConnector extends Component {
|
|||
gotoMissingFirstPage
|
||||
} = this.props;
|
||||
|
||||
registerPagePopulator(this.repopulate, ['bookFileUpdated']);
|
||||
registerPagePopulator(this.repopulate, ['bookFileUpdated', 'bookFileDeleted']);
|
||||
|
||||
if (useCurrentPage) {
|
||||
fetchMissing();
|
||||
|
|
|
|||
Loading…
Reference in a new issue