From 6cb9a46cd40fda84f9ba8bc1aa2d55fda7b6bffe Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 14 Dec 2023 17:26:53 -0800 Subject: [PATCH] Fixed: Imported movies updating on Calendar (cherry picked from commit 5a3bc49392b700650a34536ff3794bce614f64a4) Closes #9491 --- frontend/src/Calendar/CalendarConnector.js | 2 +- frontend/src/Components/SignalRConnector.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/Calendar/CalendarConnector.js b/frontend/src/Calendar/CalendarConnector.js index e33f57be2..cf3722b24 100644 --- a/frontend/src/Calendar/CalendarConnector.js +++ b/frontend/src/Calendar/CalendarConnector.js @@ -55,7 +55,7 @@ class CalendarConnector extends Component { gotoCalendarToday } = this.props; - registerPagePopulator(this.repopulate); + registerPagePopulator(this.repopulate, ['movieFileUpdated', 'movieFileDeleted']); if (useCurrentPage) { fetchCalendar(); diff --git a/frontend/src/Components/SignalRConnector.js b/frontend/src/Components/SignalRConnector.js index fc67b759b..0a339376d 100644 --- a/frontend/src/Components/SignalRConnector.js +++ b/frontend/src/Components/SignalRConnector.js @@ -187,6 +187,8 @@ class SignalRConnector extends Component { repopulatePage('movieFileUpdated'); } else if (body.action === 'deleted') { this.props.dispatchRemoveItem({ section, id: body.resource.id }); + + repopulatePage('movieFileDeleted'); } };