From 3b6d60e904f40c63cdab187ad86978bd31a7a1b8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 18 Mar 2020 18:32:43 -0700 Subject: [PATCH] New: RSS Sync button on Calendar Closes #3326 --- frontend/src/Calendar/CalendarPage.js | 14 ++++++++++++++ frontend/src/Calendar/CalendarPageConnector.js | 12 ++++++++++++ 2 files changed, 26 insertions(+) diff --git a/frontend/src/Calendar/CalendarPage.js b/frontend/src/Calendar/CalendarPage.js index 734bd88ff..c7b02140c 100644 --- a/frontend/src/Calendar/CalendarPage.js +++ b/frontend/src/Calendar/CalendarPage.js @@ -6,6 +6,7 @@ import Measure from 'Components/Measure'; import PageContentBodyConnector from 'Components/Page/PageContentBodyConnector'; import PageToolbar from 'Components/Page/Toolbar/PageToolbar'; import PageToolbarSection from 'Components/Page/Toolbar/PageToolbarSection'; +import PageToolbarSeparator from 'Components/Page/Toolbar/PageToolbarSeparator'; import PageToolbarButton from 'Components/Page/Toolbar/PageToolbarButton'; import FilterMenu from 'Components/Menu/FilterMenu'; import NoSeries from 'Series/NoSeries'; @@ -76,8 +77,10 @@ class CalendarPage extends Component { filters, hasSeries, missingEpisodeIds, + isRssSyncExecuting, isSearchingForMissing, useCurrentPage, + onRssSyncPress, onFilterSelect } = this.props; @@ -99,6 +102,15 @@ class CalendarPage extends Component { onPress={this.onGetCalendarLinkPress} /> + + + + { return { @@ -74,6 +79,7 @@ function createMapStateToProps() { colorImpairedMode: uiSettings.enableColorImpairedMode, hasSeries: !!seriesCount, missingEpisodeIds, + isRssSyncExecuting, isSearchingForMissing }; } @@ -82,6 +88,12 @@ function createMapStateToProps() { function createMapDispatchToProps(dispatch, props) { return { + onRssSyncPress() { + dispatch(executeCommand({ + name: commandNames.RSS_SYNC + })); + }, + onSearchMissingPress(episodeIds) { dispatch(searchMissing({ episodeIds })); },