Rename ImportExclusions to ImportListExclusions

pull/10287/head
Bogdan 5 months ago committed by Qstick
parent f75497f57d
commit d25bcdb043

@ -6,7 +6,7 @@ import { clearAddMovie, lookupMovie } from 'Store/Actions/addMovieActions';
import { clearMovieFiles, fetchMovieFiles } from 'Store/Actions/movieFileActions'; import { clearMovieFiles, fetchMovieFiles } from 'Store/Actions/movieFileActions';
import { clearQueueDetails, fetchQueueDetails } from 'Store/Actions/queueActions'; import { clearQueueDetails, fetchQueueDetails } from 'Store/Actions/queueActions';
import { fetchRootFolders } from 'Store/Actions/rootFolderActions'; import { fetchRootFolders } from 'Store/Actions/rootFolderActions';
import { fetchImportExclusions } from 'Store/Actions/Settings/importExclusions'; import { fetchImportListExclusions } from 'Store/Actions/Settings/importListExclusions';
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector'; import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
import hasDifferentItems from 'Utilities/Object/hasDifferentItems'; import hasDifferentItems from 'Utilities/Object/hasDifferentItems';
import selectUniqueIds from 'Utilities/Object/selectUniqueIds'; import selectUniqueIds from 'Utilities/Object/selectUniqueIds';
@ -36,7 +36,7 @@ const mapDispatchToProps = {
lookupMovie, lookupMovie,
clearAddMovie, clearAddMovie,
fetchRootFolders, fetchRootFolders,
fetchImportExclusions, fetchImportListExclusions,
fetchQueueDetails, fetchQueueDetails,
clearQueueDetails, clearQueueDetails,
fetchMovieFiles, fetchMovieFiles,
@ -56,7 +56,7 @@ class AddNewMovieConnector extends Component {
componentDidMount() { componentDidMount() {
this.props.fetchRootFolders(); this.props.fetchRootFolders();
this.props.fetchImportExclusions(); this.props.fetchImportListExclusions();
this.props.fetchQueueDetails(); this.props.fetchQueueDetails();
} }
@ -131,7 +131,7 @@ AddNewMovieConnector.propTypes = {
lookupMovie: PropTypes.func.isRequired, lookupMovie: PropTypes.func.isRequired,
clearAddMovie: PropTypes.func.isRequired, clearAddMovie: PropTypes.func.isRequired,
fetchRootFolders: PropTypes.func.isRequired, fetchRootFolders: PropTypes.func.isRequired,
fetchImportExclusions: PropTypes.func.isRequired, fetchImportListExclusions: PropTypes.func.isRequired,
fetchQueueDetails: PropTypes.func.isRequired, fetchQueueDetails: PropTypes.func.isRequired,
clearQueueDetails: PropTypes.func.isRequired, clearQueueDetails: PropTypes.func.isRequired,
fetchMovieFiles: PropTypes.func.isRequired, fetchMovieFiles: PropTypes.func.isRequired,

@ -5,9 +5,9 @@ import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames'; import * as commandNames from 'Commands/commandNames';
import withScrollPosition from 'Components/withScrollPosition'; import withScrollPosition from 'Components/withScrollPosition';
import { executeCommand } from 'Store/Actions/commandActions'; import { executeCommand } from 'Store/Actions/commandActions';
import { addImportExclusions, addMovies, clearAddMovie, fetchDiscoverMovies, setListMovieFilter, setListMovieSort, setListMovieTableOption, setListMovieView } from 'Store/Actions/discoverMovieActions'; import { addImportListExclusions, addMovies, clearAddMovie, fetchDiscoverMovies, setListMovieFilter, setListMovieSort, setListMovieTableOption, setListMovieView } from 'Store/Actions/discoverMovieActions';
import { fetchRootFolders } from 'Store/Actions/rootFolderActions'; import { fetchRootFolders } from 'Store/Actions/rootFolderActions';
import { fetchImportExclusions } from 'Store/Actions/Settings/importExclusions'; import { fetchImportListExclusions } from 'Store/Actions/Settings/importListExclusions';
import scrollPositions from 'Store/scrollPositions'; import scrollPositions from 'Store/scrollPositions';
import createCommandExecutingSelector from 'Store/Selectors/createCommandExecutingSelector'; import createCommandExecutingSelector from 'Store/Selectors/createCommandExecutingSelector';
import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector'; import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector';
@ -43,8 +43,8 @@ function createMapDispatchToProps(dispatch, props) {
dispatch(fetchRootFolders()); dispatch(fetchRootFolders());
}, },
dispatchFetchImportExclusions() { dispatchFetchImportListExclusions() {
dispatch(fetchImportExclusions()); dispatch(fetchImportListExclusions());
}, },
dispatchClearListMovie() { dispatchClearListMovie() {
@ -75,8 +75,8 @@ function createMapDispatchToProps(dispatch, props) {
dispatch(addMovies({ ids, addOptions })); dispatch(addMovies({ ids, addOptions }));
}, },
dispatchAddImportExclusions(exclusions) { dispatchAddImportListExclusions(exclusions) {
dispatch(addImportExclusions(exclusions)); dispatch(addImportListExclusions(exclusions));
}, },
onImportListSyncPress() { onImportListSyncPress() {
@ -96,7 +96,7 @@ class DiscoverMovieConnector extends Component {
componentDidMount() { componentDidMount() {
registerPagePopulator(this.repopulate); registerPagePopulator(this.repopulate);
this.props.dispatchFetchRootFolders(); this.props.dispatchFetchRootFolders();
this.props.dispatchFetchImportExclusions(); this.props.dispatchFetchImportListExclusions();
this.props.dispatchFetchListMovies(); this.props.dispatchFetchListMovies();
} }
@ -121,7 +121,7 @@ class DiscoverMovieConnector extends Component {
}; };
onExcludeMoviesPress =({ ids }) => { onExcludeMoviesPress =({ ids }) => {
this.props.dispatchAddImportExclusions({ ids }); this.props.dispatchAddImportListExclusions({ ids });
}; };
// //
@ -144,13 +144,13 @@ class DiscoverMovieConnector extends Component {
DiscoverMovieConnector.propTypes = { DiscoverMovieConnector.propTypes = {
isSmallScreen: PropTypes.bool.isRequired, isSmallScreen: PropTypes.bool.isRequired,
view: PropTypes.string.isRequired, view: PropTypes.string.isRequired,
dispatchFetchImportExclusions: PropTypes.func.isRequired, dispatchFetchImportListExclusions: PropTypes.func.isRequired,
dispatchFetchRootFolders: PropTypes.func.isRequired, dispatchFetchRootFolders: PropTypes.func.isRequired,
dispatchFetchListMovies: PropTypes.func.isRequired, dispatchFetchListMovies: PropTypes.func.isRequired,
dispatchClearListMovie: PropTypes.func.isRequired, dispatchClearListMovie: PropTypes.func.isRequired,
dispatchSetListMovieView: PropTypes.func.isRequired, dispatchSetListMovieView: PropTypes.func.isRequired,
dispatchAddMovies: PropTypes.func.isRequired, dispatchAddMovies: PropTypes.func.isRequired,
dispatchAddImportExclusions: PropTypes.func.isRequired dispatchAddImportListExclusions: PropTypes.func.isRequired
}; };
export default withScrollPosition( export default withScrollPosition(

@ -8,9 +8,9 @@ import DiscoverMovieFooter from './DiscoverMovieFooter';
function createMapStateToProps() { function createMapStateToProps() {
return createSelector( return createSelector(
(state) => state.discoverMovie, (state) => state.discoverMovie,
(state) => state.settings.importExclusions, (state) => state.settings.importListExclusions,
(state, { selectedIds }) => selectedIds, (state, { selectedIds }) => selectedIds,
(discoverMovie, importExclusions, selectedIds) => { (discoverMovie, importListExclusions, selectedIds) => {
const { const {
monitor: defaultMonitor, monitor: defaultMonitor,
qualityProfileId: defaultQualityProfileId, qualityProfileId: defaultQualityProfileId,
@ -25,7 +25,7 @@ function createMapStateToProps() {
const { const {
isSaving isSaving
} = importExclusions; } = importListExclusions;
return { return {
selectedCount: selectedIds.length, selectedCount: selectedIds.length,

@ -1,11 +1,11 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React, { Component } from 'react'; import React, { Component } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { addImportExclusions } from 'Store/Actions/discoverMovieActions'; import { addImportListExclusions } from 'Store/Actions/discoverMovieActions';
import ExcludeMovieModalContent from './ExcludeMovieModalContent'; import ExcludeMovieModalContent from './ExcludeMovieModalContent';
const mapDispatchToProps = { const mapDispatchToProps = {
addImportExclusions addImportListExclusions
}; };
class ExcludeMovieModalContentConnector extends Component { class ExcludeMovieModalContentConnector extends Component {
@ -14,7 +14,7 @@ class ExcludeMovieModalContentConnector extends Component {
// Listeners // Listeners
onExcludePress = () => { onExcludePress = () => {
this.props.addImportExclusions({ ids: [this.props.tmdbId] }); this.props.addImportListExclusions({ ids: [this.props.tmdbId] });
this.props.onModalClose(true); this.props.onModalClose(true);
}; };
@ -37,7 +37,7 @@ ExcludeMovieModalContentConnector.propTypes = {
title: PropTypes.string.isRequired, title: PropTypes.string.isRequired,
year: PropTypes.number.isRequired, year: PropTypes.number.isRequired,
onModalClose: PropTypes.func.isRequired, onModalClose: PropTypes.func.isRequired,
addImportExclusions: PropTypes.func.isRequired addImportListExclusions: PropTypes.func.isRequired
}; };
export default connect(undefined, mapDispatchToProps)(ExcludeMovieModalContentConnector); export default connect(undefined, mapDispatchToProps)(ExcludeMovieModalContentConnector);

@ -18,7 +18,7 @@ class EditImportListExclusionModalConnector extends Component {
// Listeners // Listeners
onModalClose = () => { onModalClose = () => {
this.props.clearPendingChanges({ section: 'settings.importExclusions' }); this.props.clearPendingChanges({ section: 'settings.importListExclusions' });
this.props.onModalClose(); this.props.onModalClose();
}; };

@ -27,7 +27,7 @@ function EditImportListExclusionModalContent(props) {
onInputChange, onInputChange,
onSavePress, onSavePress,
onModalClose, onModalClose,
onDeleteImportExclusionPress, onDeleteImportListExclusionPress,
...otherProps ...otherProps
} = props; } = props;
@ -107,7 +107,7 @@ function EditImportListExclusionModalContent(props) {
<Button <Button
className={styles.deleteButton} className={styles.deleteButton}
kind={kinds.DANGER} kind={kinds.DANGER}
onPress={onDeleteImportExclusionPress} onPress={onDeleteImportListExclusionPress}
> >
{translate('Delete')} {translate('Delete')}
</Button> </Button>
@ -141,7 +141,7 @@ EditImportListExclusionModalContent.propTypes = {
onInputChange: PropTypes.func.isRequired, onInputChange: PropTypes.func.isRequired,
onSavePress: PropTypes.func.isRequired, onSavePress: PropTypes.func.isRequired,
onModalClose: PropTypes.func.isRequired, onModalClose: PropTypes.func.isRequired,
onDeleteImportExclusionPress: PropTypes.func onDeleteImportListExclusionPress: PropTypes.func
}; };
export default EditImportListExclusionModalContent; export default EditImportListExclusionModalContent;

@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React, { Component } from 'react'; import React, { Component } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import { saveImportExclusion, setImportExclusionValue } from 'Store/Actions/settingsActions'; import { saveImportListExclusion, setImportListExclusionValue } from 'Store/Actions/settingsActions';
import selectSettings from 'Store/Selectors/selectSettings'; import selectSettings from 'Store/Selectors/selectSettings';
import EditImportListExclusionModalContent from './EditImportListExclusionModalContent'; import EditImportListExclusionModalContent from './EditImportListExclusionModalContent';
@ -12,11 +12,11 @@ const newImportListExclusion = {
movieYear: 0 movieYear: 0
}; };
function createImportExclusionSelector() { function createImportListExclusionSelector() {
return createSelector( return createSelector(
(state, { id }) => id, (state, { id }) => id,
(state) => state.settings.importExclusions, (state) => state.settings.importListExclusions,
(id, importExclusions) => { (id, importListExclusions) => {
const { const {
isFetching, isFetching,
error, error,
@ -24,7 +24,7 @@ function createImportExclusionSelector() {
saveError, saveError,
pendingChanges, pendingChanges,
items items
} = importExclusions; } = importListExclusions;
const mapping = id ? items.find((i) => i.id === id) : newImportListExclusion; const mapping = id ? items.find((i) => i.id === id) : newImportListExclusion;
const settings = selectSettings(mapping, pendingChanges, saveError); const settings = selectSettings(mapping, pendingChanges, saveError);
@ -44,21 +44,21 @@ function createImportExclusionSelector() {
function createMapStateToProps() { function createMapStateToProps() {
return createSelector( return createSelector(
createImportExclusionSelector(), createImportListExclusionSelector(),
(importExclusion) => { (importListExclusion) => {
return { return {
...importExclusion ...importListExclusion
}; };
} }
); );
} }
const mapDispatchToProps = { const mapDispatchToProps = {
setImportExclusionValue, setImportListExclusionValue,
saveImportExclusion saveImportListExclusion
}; };
class EditImportExclusionModalContentConnector extends Component { class EditImportListExclusionModalContentConnector extends Component {
// //
// Lifecycle // Lifecycle
@ -66,7 +66,7 @@ class EditImportExclusionModalContentConnector extends Component {
componentDidMount() { componentDidMount() {
if (!this.props.id) { if (!this.props.id) {
Object.keys(newImportListExclusion).forEach((name) => { Object.keys(newImportListExclusion).forEach((name) => {
this.props.setImportExclusionValue({ this.props.setImportListExclusionValue({
name, name,
value: newImportListExclusion[name] value: newImportListExclusion[name]
}); });
@ -84,11 +84,11 @@ class EditImportExclusionModalContentConnector extends Component {
// Listeners // Listeners
onInputChange = ({ name, value }) => { onInputChange = ({ name, value }) => {
this.props.setImportExclusionValue({ name, value }); this.props.setImportListExclusionValue({ name, value });
}; };
onSavePress = () => { onSavePress = () => {
this.props.saveImportExclusion({ id: this.props.id }); this.props.saveImportListExclusion({ id: this.props.id });
}; };
// //
@ -105,14 +105,14 @@ class EditImportExclusionModalContentConnector extends Component {
} }
} }
EditImportExclusionModalContentConnector.propTypes = { EditImportListExclusionModalContentConnector.propTypes = {
id: PropTypes.number, id: PropTypes.number,
isSaving: PropTypes.bool.isRequired, isSaving: PropTypes.bool.isRequired,
saveError: PropTypes.object, saveError: PropTypes.object,
item: PropTypes.object.isRequired, item: PropTypes.object.isRequired,
setImportExclusionValue: PropTypes.func.isRequired, setImportListExclusionValue: PropTypes.func.isRequired,
saveImportExclusion: PropTypes.func.isRequired, saveImportListExclusion: PropTypes.func.isRequired,
onModalClose: PropTypes.func.isRequired onModalClose: PropTypes.func.isRequired
}; };
export default connect(createMapStateToProps, mapDispatchToProps)(EditImportExclusionModalContentConnector); export default connect(createMapStateToProps, mapDispatchToProps)(EditImportListExclusionModalContentConnector);

@ -1,4 +1,4 @@
.importExclusion { .importListExclusion {
display: flex; display: flex;
align-items: stretch; align-items: stretch;
margin-bottom: 10px; margin-bottom: 10px;

@ -2,7 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'actions': string; 'actions': string;
'importExclusion': string; 'importListExclusion': string;
'movieTitle': string; 'movieTitle': string;
'movieYear': string; 'movieYear': string;
'tmdbId': string; 'tmdbId': string;

@ -18,35 +18,35 @@ class ImportListExclusion extends Component {
super(props, context); super(props, context);
this.state = { this.state = {
isEditImportExclusionModalOpen: false, isEditImportListExclusionModalOpen: false,
isDeleteImportExclusionModalOpen: false isDeleteImportListExclusionModalOpen: false
}; };
} }
// //
// Listeners // Listeners
onEditImportExclusionPress = () => { onEditImportListExclusionPress = () => {
this.setState({ isEditImportExclusionModalOpen: true }); this.setState({ isEditImportListExclusionModalOpen: true });
}; };
onEditImportExclusionModalClose = () => { onEditImportListExclusionModalClose = () => {
this.setState({ isEditImportExclusionModalOpen: false }); this.setState({ isEditImportListExclusionModalOpen: false });
}; };
onDeleteImportExclusionPress = () => { onDeleteImportListExclusionPress = () => {
this.setState({ this.setState({
isEditImportExclusionModalOpen: false, isEditImportListExclusionModalOpen: false,
isDeleteImportExclusionModalOpen: true isDeleteImportListExclusionModalOpen: true
}); });
}; };
onDeleteImportExclusionModalClose = () => { onDeleteImportListExclusionModalClose = () => {
this.setState({ isDeleteImportExclusionModalOpen: false }); this.setState({ isDeleteImportListExclusionModalOpen: false });
}; };
onConfirmDeleteImportExclusion = () => { onConfirmDeleteImportListExclusion = () => {
this.props.onConfirmDeleteImportExclusion(this.props.id); this.props.onConfirmDeleteImportListExclusion(this.props.id);
}; };
// //
@ -63,7 +63,7 @@ class ImportListExclusion extends Component {
return ( return (
<div <div
className={classNames( className={classNames(
styles.importExclusion styles.importListExclusion
)} )}
> >
<div className={styles.tmdbId}>{tmdbId}</div> <div className={styles.tmdbId}>{tmdbId}</div>
@ -72,7 +72,7 @@ class ImportListExclusion extends Component {
<div className={styles.actions}> <div className={styles.actions}>
<Link <Link
onPress={this.onEditImportExclusionPress} onPress={this.onEditImportListExclusionPress}
> >
<Icon name={icons.EDIT} /> <Icon name={icons.EDIT} />
</Link> </Link>
@ -80,19 +80,19 @@ class ImportListExclusion extends Component {
<EditImportListExclusionModalConnector <EditImportListExclusionModalConnector
id={id} id={id}
isOpen={this.state.isEditImportExclusionModalOpen} isOpen={this.state.isEditImportListExclusionModalOpen}
onModalClose={this.onEditImportExclusionModalClose} onModalClose={this.onEditImportListExclusionModalClose}
onDeleteImportExclusionPress={this.onDeleteImportExclusionPress} onDeleteImportListExclusionPress={this.onDeleteImportListExclusionPress}
/> />
<ConfirmModal <ConfirmModal
isOpen={this.state.isDeleteImportExclusionModalOpen} isOpen={this.state.isDeleteImportListExclusionModalOpen}
kind={kinds.DANGER} kind={kinds.DANGER}
title={translate('DeleteImportListExclusion')} title={translate('DeleteImportListExclusion')}
message={translate('DeleteImportListExclusionMessageText')} message={translate('DeleteImportListExclusionMessageText')}
confirmLabel={translate('Delete')} confirmLabel={translate('Delete')}
onConfirm={this.onConfirmDeleteImportExclusion} onConfirm={this.onConfirmDeleteImportListExclusion}
onCancel={this.onDeleteImportExclusionModalClose} onCancel={this.onDeleteImportListExclusionModalClose}
/> />
</div> </div>
); );
@ -104,7 +104,7 @@ ImportListExclusion.propTypes = {
movieTitle: PropTypes.string.isRequired, movieTitle: PropTypes.string.isRequired,
tmdbId: PropTypes.number.isRequired, tmdbId: PropTypes.number.isRequired,
movieYear: PropTypes.number.isRequired, movieYear: PropTypes.number.isRequired,
onConfirmDeleteImportExclusion: PropTypes.func.isRequired onConfirmDeleteImportListExclusion: PropTypes.func.isRequired
}; };
ImportListExclusion.defaultProps = { ImportListExclusion.defaultProps = {

@ -13,7 +13,7 @@
flex: 0 0 70px; flex: 0 0 70px;
} }
.addImportExclusion { .addImportListExclusion {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
padding-right: 10px; padding-right: 10px;

@ -2,7 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'addButton': string; 'addButton': string;
'addImportExclusion': string; 'addImportListExclusion': string;
'importListExclusionsHeader': string; 'importListExclusionsHeader': string;
'movieYear': string; 'movieYear': string;
'title': string; 'title': string;

@ -19,19 +19,19 @@ class ImportListExclusions extends Component {
super(props, context); super(props, context);
this.state = { this.state = {
isAddImportExclusionModalOpen: false isAddImportListExclusionModalOpen: false
}; };
} }
// //
// Listeners // Listeners
onAddImportExclusionPress = () => { onAddImportListExclusionPress = () => {
this.setState({ isAddImportExclusionModalOpen: true }); this.setState({ isAddImportListExclusionModalOpen: true });
}; };
onModalClose = () => { onModalClose = () => {
this.setState({ isAddImportExclusionModalOpen: false }); this.setState({ isAddImportListExclusionModalOpen: false });
}; };
// //
@ -40,7 +40,7 @@ class ImportListExclusions extends Component {
render() { render() {
const { const {
items, items,
onConfirmDeleteImportExclusion, onConfirmDeleteImportListExclusion,
...otherProps ...otherProps
} = this.props; } = this.props;
@ -71,24 +71,24 @@ class ImportListExclusions extends Component {
{...item} {...item}
{...otherProps} {...otherProps}
index={index} index={index}
onConfirmDeleteImportExclusion={onConfirmDeleteImportExclusion} onConfirmDeleteImportListExclusion={onConfirmDeleteImportListExclusion}
/> />
); );
}) })
} }
</div> </div>
<div className={styles.addImportExclusion}> <div className={styles.addImportListExclusion}>
<Link <Link
className={styles.addButton} className={styles.addButton}
onPress={this.onAddImportExclusionPress} onPress={this.onAddImportListExclusionPress}
> >
<Icon name={icons.ADD} /> <Icon name={icons.ADD} />
</Link> </Link>
</div> </div>
<EditImportListExclusionModalConnector <EditImportListExclusionModalConnector
isOpen={this.state.isAddImportExclusionModalOpen} isOpen={this.state.isAddImportListExclusionModalOpen}
onModalClose={this.onModalClose} onModalClose={this.onModalClose}
/> />
@ -102,7 +102,7 @@ ImportListExclusions.propTypes = {
isFetching: PropTypes.bool.isRequired, isFetching: PropTypes.bool.isRequired,
error: PropTypes.object, error: PropTypes.object,
items: PropTypes.arrayOf(PropTypes.object).isRequired, items: PropTypes.arrayOf(PropTypes.object).isRequired,
onConfirmDeleteImportExclusion: PropTypes.func.isRequired onConfirmDeleteImportListExclusion: PropTypes.func.isRequired
}; };
export default ImportListExclusions; export default ImportListExclusions;

@ -2,39 +2,39 @@ import PropTypes from 'prop-types';
import React, { Component } from 'react'; import React, { Component } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import { deleteImportExclusion, fetchImportExclusions } from 'Store/Actions/settingsActions'; import { deleteImportListExclusion, fetchImportListExclusions } from 'Store/Actions/settingsActions';
import ImportListExclusions from './ImportListExclusions'; import ImportListExclusions from './ImportListExclusions';
function createMapStateToProps() { function createMapStateToProps() {
return createSelector( return createSelector(
(state) => state.settings.importExclusions, (state) => state.settings.importListExclusions,
(importExclusions) => { (importListExclusions) => {
return { return {
...importExclusions ...importListExclusions
}; };
} }
); );
} }
const mapDispatchToProps = { const mapDispatchToProps = {
fetchImportExclusions, fetchImportListExclusions,
deleteImportExclusion deleteImportListExclusion
}; };
class ImportExclusionsConnector extends Component { class ImportListExclusionsConnector extends Component {
// //
// Lifecycle // Lifecycle
componentDidMount() { componentDidMount() {
this.props.fetchImportExclusions(); this.props.fetchImportListExclusions();
} }
// //
// Listeners // Listeners
onConfirmDeleteImportExclusion = (id) => { onConfirmDeleteImportListExclusion = (id) => {
this.props.deleteImportExclusion({ id }); this.props.deleteImportListExclusion({ id });
}; };
// //
@ -45,15 +45,15 @@ class ImportExclusionsConnector extends Component {
<ImportListExclusions <ImportListExclusions
{...this.state} {...this.state}
{...this.props} {...this.props}
onConfirmDeleteImportExclusion={this.onConfirmDeleteImportExclusion} onConfirmDeleteImportListExclusion={this.onConfirmDeleteImportListExclusion}
/> />
); );
} }
} }
ImportExclusionsConnector.propTypes = { ImportListExclusionsConnector.propTypes = {
fetchImportExclusions: PropTypes.func.isRequired, fetchImportListExclusions: PropTypes.func.isRequired,
deleteImportExclusion: PropTypes.func.isRequired deleteImportListExclusion: PropTypes.func.isRequired
}; };
export default connect(createMapStateToProps, mapDispatchToProps)(ImportExclusionsConnector); export default connect(createMapStateToProps, mapDispatchToProps)(ImportListExclusionsConnector);

@ -60,7 +60,7 @@ class ImportListSettings extends Component {
render() { render() {
const { const {
isTestingAll, isTestingAll,
dispatchTestAllImportList dispatchTestAllImportLists
} = this.props; } = this.props;
const { const {
@ -82,7 +82,7 @@ class ImportListSettings extends Component {
label={translate('TestAllLists')} label={translate('TestAllLists')}
iconName={icons.TEST} iconName={icons.TEST}
isSpinning={isTestingAll} isSpinning={isTestingAll}
onPress={dispatchTestAllImportList} onPress={dispatchTestAllImportLists}
/> />
<PageToolbarButton <PageToolbarButton
@ -118,7 +118,7 @@ class ImportListSettings extends Component {
ImportListSettings.propTypes = { ImportListSettings.propTypes = {
isTestingAll: PropTypes.bool.isRequired, isTestingAll: PropTypes.bool.isRequired,
dispatchTestAllImportList: PropTypes.func.isRequired dispatchTestAllImportLists: PropTypes.func.isRequired
}; };
export default ImportListSettings; export default ImportListSettings;

@ -1,6 +1,6 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import { testAllImportList } from 'Store/Actions/settingsActions'; import { testAllImportLists } from 'Store/Actions/settingsActions';
import ImportListSettings from './ImportListSettings'; import ImportListSettings from './ImportListSettings';
function createMapStateToProps() { function createMapStateToProps() {
@ -15,7 +15,7 @@ function createMapStateToProps() {
} }
const mapDispatchToProps = { const mapDispatchToProps = {
dispatchTestAllImportList: testAllImportList dispatchTestAllImportLists: testAllImportLists
}; };
export default connect(createMapStateToProps, mapDispatchToProps)(ImportListSettings); export default connect(createMapStateToProps, mapDispatchToProps)(ImportListSettings);

@ -1,4 +1,4 @@
.importList { .list {
composes: card from '~Components/Card.css'; composes: card from '~Components/Card.css';
position: relative; position: relative;

@ -2,7 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'actions': string; 'actions': string;
'importList': string; 'list': string;
'name': string; 'name': string;
'overlay': string; 'overlay': string;
'presetsMenu': string; 'presetsMenu': string;

@ -41,7 +41,7 @@ class AddImportListItem extends Component {
return ( return (
<div <div
className={styles.importList} className={styles.list}
> >
<Link <Link
className={styles.underlay} className={styles.underlay}

@ -1,4 +1,4 @@
.importLists { .lists {
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;

@ -1,7 +1,7 @@
// This file is automatically generated. // This file is automatically generated.
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'importLists': string; 'lists': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;
export default cssExports; export default cssExports;

@ -69,7 +69,7 @@ class AddImportListModalContent extends Component {
typeOfList: titleCase(key) typeOfList: titleCase(key)
})} })}
> >
<div className={styles.importLists}> <div className={styles.lists}>
{ {
listGroups[key].map((list) => { listGroups[key].map((list) => {
return ( return (

@ -51,7 +51,7 @@ class AddImportListModalContentConnector extends Component {
onImportListSelect = ({ implementation, implementationName, name, minRefreshInterval }) => { onImportListSelect = ({ implementation, implementationName, name, minRefreshInterval }) => {
this.props.selectImportListSchema({ implementation, implementationName, presetName: name, minRefreshInterval }); this.props.selectImportListSchema({ implementation, implementationName, presetName: name, minRefreshInterval });
this.props.onModalClose({ importListSelected: true }); this.props.onModalClose({ listSelected: true });
}; };
// //

@ -1,4 +1,4 @@
.importList { .list {
composes: card from '~Components/Card.css'; composes: card from '~Components/Card.css';
width: 290px; width: 290px;

@ -2,7 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'enabled': string; 'enabled': string;
'importList': string; 'list': string;
'name': string; 'name': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;

@ -63,7 +63,7 @@ class ImportList extends Component {
return ( return (
<Card <Card
className={styles.importList} className={styles.list}
overlayContent={true} overlayContent={true}
onPress={this.onEditImportListPress} onPress={this.onEditImportListPress}
> >

@ -1,10 +1,10 @@
.importLists { .lists {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.addImportList { .addList {
composes: importList from '~./ImportList.css'; composes: list from '~./ImportList.css';
background-color: var(--cardAlternateBackgroundColor); background-color: var(--cardAlternateBackgroundColor);
color: var(--gray); color: var(--gray);

@ -1,9 +1,9 @@
// This file is automatically generated. // This file is automatically generated.
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'addImportList': string; 'addList': string;
'center': string; 'center': string;
'importLists': string; 'lists': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;
export default cssExports; export default cssExports;

@ -32,10 +32,10 @@ class ImportLists extends Component {
this.setState({ isAddImportListModalOpen: true }); this.setState({ isAddImportListModalOpen: true });
}; };
onAddImportListModalClose = ({ importListSelected = false } = {}) => { onAddImportListModalClose = ({ listSelected = false } = {}) => {
this.setState({ this.setState({
isAddImportListModalOpen: false, isAddImportListModalOpen: false,
isEditImportListModalOpen: importListSelected isEditImportListModalOpen: listSelected
}); });
}; };
@ -64,7 +64,7 @@ class ImportLists extends Component {
errorMessage={translate('ImportListsLoadError')} errorMessage={translate('ImportListsLoadError')}
{...otherProps} {...otherProps}
> >
<div className={styles.importLists}> <div className={styles.lists}>
{ {
items.map((item) => { items.map((item) => {
return ( return (
@ -78,7 +78,7 @@ class ImportLists extends Component {
} }
<Card <Card
className={styles.addImportList} className={styles.addList}
onPress={this.onAddImportListPress} onPress={this.onAddImportListPress}
> >
<div className={styles.center}> <div className={styles.center}>

@ -1,71 +0,0 @@
import { createAction } from 'redux-actions';
import createFetchHandler from 'Store/Actions/Creators/createFetchHandler';
import createRemoveItemHandler from 'Store/Actions/Creators/createRemoveItemHandler';
import createSaveProviderHandler from 'Store/Actions/Creators/createSaveProviderHandler';
import createSetSettingValueReducer from 'Store/Actions/Creators/Reducers/createSetSettingValueReducer';
import { createThunk } from 'Store/thunks';
//
// Variables
const section = 'settings.importExclusions';
//
// Actions Types
export const FETCH_IMPORT_EXCLUSIONS = 'settings/importExclusions/fetchImportExclusions';
export const SAVE_IMPORT_EXCLUSION = 'settings/importExclusions/saveImportExclusion';
export const DELETE_IMPORT_EXCLUSION = 'settings/importExclusions/deleteImportExclusion';
export const SET_IMPORT_EXCLUSION_VALUE = 'settings/importExclusions/setImportExclusionValue';
//
// Action Creators
export const fetchImportExclusions = createThunk(FETCH_IMPORT_EXCLUSIONS);
export const saveImportExclusion = createThunk(SAVE_IMPORT_EXCLUSION);
export const deleteImportExclusion = createThunk(DELETE_IMPORT_EXCLUSION);
export const setImportExclusionValue = createAction(SET_IMPORT_EXCLUSION_VALUE, (payload) => {
return {
section,
...payload
};
});
//
// Details
export default {
//
// State
defaultState: {
isFetching: false,
isPopulated: false,
error: null,
items: [],
isSaving: false,
saveError: null,
pendingChanges: {}
},
//
// Action Handlers
actionHandlers: {
[FETCH_IMPORT_EXCLUSIONS]: createFetchHandler(section, '/exclusions'),
[SAVE_IMPORT_EXCLUSION]: createSaveProviderHandler(section, '/exclusions'),
[DELETE_IMPORT_EXCLUSION]: createRemoveItemHandler(section, '/exclusions')
},
//
// Reducers
reducers: {
[SET_IMPORT_EXCLUSION_VALUE]: createSetSettingValueReducer(section)
}
};

@ -0,0 +1,71 @@
import { createAction } from 'redux-actions';
import createFetchHandler from 'Store/Actions/Creators/createFetchHandler';
import createRemoveItemHandler from 'Store/Actions/Creators/createRemoveItemHandler';
import createSaveProviderHandler from 'Store/Actions/Creators/createSaveProviderHandler';
import createSetSettingValueReducer from 'Store/Actions/Creators/Reducers/createSetSettingValueReducer';
import { createThunk } from 'Store/thunks';
//
// Variables
const section = 'settings.importListExclusions';
//
// Actions Types
export const FETCH_IMPORT_LIST_EXCLUSIONS = 'settings/importListExclusions/fetchImportListExclusions';
export const SAVE_IMPORT_LIST_EXCLUSION = 'settings/importListExclusions/saveImportListExclusion';
export const DELETE_IMPORT_LIST_EXCLUSION = 'settings/importListExclusions/deleteImportListExclusion';
export const SET_IMPORT_LIST_EXCLUSION_VALUE = 'settings/importListExclusions/setImportListExclusionValue';
//
// Action Creators
export const fetchImportListExclusions = createThunk(FETCH_IMPORT_LIST_EXCLUSIONS);
export const saveImportListExclusion = createThunk(SAVE_IMPORT_LIST_EXCLUSION);
export const deleteImportListExclusion = createThunk(DELETE_IMPORT_LIST_EXCLUSION);
export const setImportListExclusionValue = createAction(SET_IMPORT_LIST_EXCLUSION_VALUE, (payload) => {
return {
section,
...payload
};
});
//
// Details
export default {
//
// State
defaultState: {
isFetching: false,
isPopulated: false,
error: null,
items: [],
isSaving: false,
saveError: null,
pendingChanges: {}
},
//
// Action Handlers
actionHandlers: {
[FETCH_IMPORT_LIST_EXCLUSIONS]: createFetchHandler(section, '/exclusions'),
[SAVE_IMPORT_LIST_EXCLUSION]: createSaveProviderHandler(section, '/exclusions'),
[DELETE_IMPORT_LIST_EXCLUSION]: createRemoveItemHandler(section, '/exclusions')
},
//
// Reducers
reducers: {
[SET_IMPORT_LIST_EXCLUSION_VALUE]: createSetSettingValueReducer(section)
}
};

@ -30,10 +30,10 @@ export const CANCEL_SAVE_IMPORT_LIST = 'settings/importLists/cancelSaveImportLis
export const DELETE_IMPORT_LIST = 'settings/importLists/deleteImportList'; export const DELETE_IMPORT_LIST = 'settings/importLists/deleteImportList';
export const TEST_IMPORT_LIST = 'settings/importLists/testImportList'; export const TEST_IMPORT_LIST = 'settings/importLists/testImportList';
export const CANCEL_TEST_IMPORT_LIST = 'settings/importLists/cancelTestImportList'; export const CANCEL_TEST_IMPORT_LIST = 'settings/importLists/cancelTestImportList';
export const TEST_ALL_IMPORT_LIST = 'settings/importLists/testAllImportList'; export const TEST_ALL_IMPORT_LISTS = 'settings/importLists/testAllImportLists';
export const BULK_DELETE_IMPORT_LISTS = 'settings/importlists/bulkDeleteImportLists'; export const BULK_DELETE_IMPORT_LISTS = 'settings/importLists/bulkDeleteImportLists';
export const BULK_EDIT_IMPORT_LISTS = 'settings/importlists/bulkEditImportLists'; export const BULK_EDIT_IMPORT_LISTS = 'settings/importLists/bulkEditImportLists';
// //
// Action Creators // Action Creators
@ -47,7 +47,7 @@ export const cancelSaveImportList = createThunk(CANCEL_SAVE_IMPORT_LIST);
export const deleteImportList = createThunk(DELETE_IMPORT_LIST); export const deleteImportList = createThunk(DELETE_IMPORT_LIST);
export const testImportList = createThunk(TEST_IMPORT_LIST); export const testImportList = createThunk(TEST_IMPORT_LIST);
export const cancelTestImportList = createThunk(CANCEL_TEST_IMPORT_LIST); export const cancelTestImportList = createThunk(CANCEL_TEST_IMPORT_LIST);
export const testAllImportList = createThunk(TEST_ALL_IMPORT_LIST); export const testAllImportLists = createThunk(TEST_ALL_IMPORT_LISTS);
export const bulkDeleteImportLists = createThunk(BULK_DELETE_IMPORT_LISTS); export const bulkDeleteImportLists = createThunk(BULK_DELETE_IMPORT_LISTS);
export const bulkEditImportLists = createThunk(BULK_EDIT_IMPORT_LISTS); export const bulkEditImportLists = createThunk(BULK_EDIT_IMPORT_LISTS);
@ -105,7 +105,7 @@ export default {
[DELETE_IMPORT_LIST]: createRemoveItemHandler(section, '/importlist'), [DELETE_IMPORT_LIST]: createRemoveItemHandler(section, '/importlist'),
[TEST_IMPORT_LIST]: createTestProviderHandler(section, '/importlist'), [TEST_IMPORT_LIST]: createTestProviderHandler(section, '/importlist'),
[CANCEL_TEST_IMPORT_LIST]: createCancelTestProviderHandler(section), [CANCEL_TEST_IMPORT_LIST]: createCancelTestProviderHandler(section),
[TEST_ALL_IMPORT_LIST]: createTestAllProvidersHandler(section, '/importlist'), [TEST_ALL_IMPORT_LISTS]: createTestAllProvidersHandler(section, '/importlist'),
[BULK_DELETE_IMPORT_LISTS]: createBulkRemoveItemHandler(section, '/importlist/bulk'), [BULK_DELETE_IMPORT_LISTS]: createBulkRemoveItemHandler(section, '/importlist/bulk'),
[BULK_EDIT_IMPORT_LISTS]: createBulkEditItemHandler(section, '/importlist/bulk') [BULK_EDIT_IMPORT_LISTS]: createBulkEditItemHandler(section, '/importlist/bulk')

@ -543,7 +543,7 @@ export const SET_LIST_MOVIE_TABLE_OPTION = 'discoverMovie/setListMovieTableOptio
export const SET_LIST_MOVIE_POSTER_OPTION = 'discoverMovie/setListMoviePosterOption'; export const SET_LIST_MOVIE_POSTER_OPTION = 'discoverMovie/setListMoviePosterOption';
export const SET_LIST_MOVIE_OVERVIEW_OPTION = 'discoverMovie/setListMovieOverviewOption'; export const SET_LIST_MOVIE_OVERVIEW_OPTION = 'discoverMovie/setListMovieOverviewOption';
export const ADD_IMPORT_EXCLUSIONS = 'discoverMovie/addImportExclusions'; export const ADD_IMPORT_LIST_EXCLUSIONS = 'discoverMovie/addImportListExclusions';
// //
// Action Creators // Action Creators
@ -563,7 +563,7 @@ export const setListMovieTableOption = createAction(SET_LIST_MOVIE_TABLE_OPTION)
export const setListMoviePosterOption = createAction(SET_LIST_MOVIE_POSTER_OPTION); export const setListMoviePosterOption = createAction(SET_LIST_MOVIE_POSTER_OPTION);
export const setListMovieOverviewOption = createAction(SET_LIST_MOVIE_OVERVIEW_OPTION); export const setListMovieOverviewOption = createAction(SET_LIST_MOVIE_OVERVIEW_OPTION);
export const addImportExclusions = createThunk(ADD_IMPORT_EXCLUSIONS); export const addImportListExclusions = createThunk(ADD_IMPORT_LIST_EXCLUSIONS);
export const setAddMovieValue = createAction(SET_ADD_MOVIE_VALUE, (payload) => { export const setAddMovieValue = createAction(SET_ADD_MOVIE_VALUE, (payload) => {
return { return {
@ -726,7 +726,7 @@ export const actionHandlers = handleThunks({
}); });
}, },
[ADD_IMPORT_EXCLUSIONS]: function(getState, payload, dispatch) { [ADD_IMPORT_LIST_EXCLUSIONS]: function(getState, payload, dispatch) {
const ids = payload.ids; const ids = payload.ids;
const items = getState().discoverMovie.items; const items = getState().discoverMovie.items;
@ -754,7 +754,7 @@ export const actionHandlers = handleThunks({
promise.done((data) => { promise.done((data) => {
dispatch(batchActions([ dispatch(batchActions([
...data.map((item) => updateItem({ section: 'settings.importExclusions', ...item })), ...data.map((item) => updateItem({ section: 'settings.importListExclusions', ...item })),
...data.map((item) => updateItem({ section, id: item.tmdbId, isExcluded: true })), ...data.map((item) => updateItem({ section, id: item.tmdbId, isExcluded: true })),

@ -9,7 +9,7 @@ import delayProfiles from './Settings/delayProfiles';
import downloadClientOptions from './Settings/downloadClientOptions'; import downloadClientOptions from './Settings/downloadClientOptions';
import downloadClients from './Settings/downloadClients'; import downloadClients from './Settings/downloadClients';
import general from './Settings/general'; import general from './Settings/general';
import importExclusions from './Settings/importExclusions'; import importListExclusions from './Settings/importListExclusions';
import importListOptions from './Settings/importListOptions'; import importListOptions from './Settings/importListOptions';
import importLists from './Settings/importLists'; import importLists from './Settings/importLists';
import indexerFlags from './Settings/indexerFlags'; import indexerFlags from './Settings/indexerFlags';
@ -36,13 +36,13 @@ export * from './Settings/delayProfiles';
export * from './Settings/downloadClients'; export * from './Settings/downloadClients';
export * from './Settings/downloadClientOptions'; export * from './Settings/downloadClientOptions';
export * from './Settings/general'; export * from './Settings/general';
export * from './Settings/importListOptions';
export * from './Settings/importLists';
export * from './Settings/importListExclusions';
export * from './Settings/indexerFlags'; export * from './Settings/indexerFlags';
export * from './Settings/indexerOptions'; export * from './Settings/indexerOptions';
export * from './Settings/indexers'; export * from './Settings/indexers';
export * from './Settings/languages'; export * from './Settings/languages';
export * from './Settings/importExclusions';
export * from './Settings/importListOptions';
export * from './Settings/importLists';
export * from './Settings/mediaManagement'; export * from './Settings/mediaManagement';
export * from './Settings/metadata'; export * from './Settings/metadata';
export * from './Settings/metadataOptions'; export * from './Settings/metadataOptions';
@ -51,8 +51,8 @@ export * from './Settings/namingExamples';
export * from './Settings/notifications'; export * from './Settings/notifications';
export * from './Settings/qualityDefinitions'; export * from './Settings/qualityDefinitions';
export * from './Settings/qualityProfiles'; export * from './Settings/qualityProfiles';
export * from './Settings/remotePathMappings';
export * from './Settings/releaseProfiles'; export * from './Settings/releaseProfiles';
export * from './Settings/remotePathMappings';
export * from './Settings/ui'; export * from './Settings/ui';
// //
@ -73,13 +73,13 @@ export const defaultState = {
downloadClients: downloadClients.defaultState, downloadClients: downloadClients.defaultState,
downloadClientOptions: downloadClientOptions.defaultState, downloadClientOptions: downloadClientOptions.defaultState,
general: general.defaultState, general: general.defaultState,
importLists: importLists.defaultState,
importListExclusions: importListExclusions.defaultState,
importListOptions: importListOptions.defaultState,
indexerFlags: indexerFlags.defaultState, indexerFlags: indexerFlags.defaultState,
indexerOptions: indexerOptions.defaultState, indexerOptions: indexerOptions.defaultState,
indexers: indexers.defaultState, indexers: indexers.defaultState,
languages: languages.defaultState, languages: languages.defaultState,
importExclusions: importExclusions.defaultState,
importListOptions: importListOptions.defaultState,
importLists: importLists.defaultState,
mediaManagement: mediaManagement.defaultState, mediaManagement: mediaManagement.defaultState,
metadata: metadata.defaultState, metadata: metadata.defaultState,
metadataOptions: metadataOptions.defaultState, metadataOptions: metadataOptions.defaultState,
@ -88,8 +88,8 @@ export const defaultState = {
notifications: notifications.defaultState, notifications: notifications.defaultState,
qualityDefinitions: qualityDefinitions.defaultState, qualityDefinitions: qualityDefinitions.defaultState,
qualityProfiles: qualityProfiles.defaultState, qualityProfiles: qualityProfiles.defaultState,
remotePathMappings: remotePathMappings.defaultState,
releaseProfiles: releaseProfiles.defaultState, releaseProfiles: releaseProfiles.defaultState,
remotePathMappings: remotePathMappings.defaultState,
ui: ui.defaultState ui: ui.defaultState
}; };
@ -119,13 +119,13 @@ export const actionHandlers = handleThunks({
...downloadClients.actionHandlers, ...downloadClients.actionHandlers,
...downloadClientOptions.actionHandlers, ...downloadClientOptions.actionHandlers,
...general.actionHandlers, ...general.actionHandlers,
...importLists.actionHandlers,
...importListExclusions.actionHandlers,
...importListOptions.actionHandlers,
...indexerFlags.actionHandlers, ...indexerFlags.actionHandlers,
...indexerOptions.actionHandlers, ...indexerOptions.actionHandlers,
...indexers.actionHandlers, ...indexers.actionHandlers,
...languages.actionHandlers, ...languages.actionHandlers,
...importExclusions.actionHandlers,
...importListOptions.actionHandlers,
...importLists.actionHandlers,
...mediaManagement.actionHandlers, ...mediaManagement.actionHandlers,
...metadata.actionHandlers, ...metadata.actionHandlers,
...metadataOptions.actionHandlers, ...metadataOptions.actionHandlers,
@ -134,8 +134,8 @@ export const actionHandlers = handleThunks({
...notifications.actionHandlers, ...notifications.actionHandlers,
...qualityDefinitions.actionHandlers, ...qualityDefinitions.actionHandlers,
...qualityProfiles.actionHandlers, ...qualityProfiles.actionHandlers,
...remotePathMappings.actionHandlers,
...releaseProfiles.actionHandlers, ...releaseProfiles.actionHandlers,
...remotePathMappings.actionHandlers,
...ui.actionHandlers ...ui.actionHandlers
}); });
@ -156,13 +156,13 @@ export const reducers = createHandleActions({
...downloadClients.reducers, ...downloadClients.reducers,
...downloadClientOptions.reducers, ...downloadClientOptions.reducers,
...general.reducers, ...general.reducers,
...importLists.reducers,
...importListExclusions.reducers,
...importListOptions.reducers,
...indexerFlags.reducers, ...indexerFlags.reducers,
...indexerOptions.reducers, ...indexerOptions.reducers,
...indexers.reducers, ...indexers.reducers,
...languages.reducers, ...languages.reducers,
...importExclusions.reducers,
...importListOptions.reducers,
...importLists.reducers,
...mediaManagement.reducers, ...mediaManagement.reducers,
...metadata.reducers, ...metadata.reducers,
...metadataOptions.reducers, ...metadataOptions.reducers,
@ -171,8 +171,8 @@ export const reducers = createHandleActions({
...notifications.reducers, ...notifications.reducers,
...qualityDefinitions.reducers, ...qualityDefinitions.reducers,
...qualityProfiles.reducers, ...qualityProfiles.reducers,
...remotePathMappings.reducers,
...releaseProfiles.reducers, ...releaseProfiles.reducers,
...remotePathMappings.reducers,
...ui.reducers ...ui.reducers
}, defaultState, section); }, defaultState, section);

@ -4,9 +4,9 @@ import { createSelector } from 'reselect';
function createExclusionMovieSelector() { function createExclusionMovieSelector() {
return createSelector( return createSelector(
(state, { tmdbId }) => tmdbId, (state, { tmdbId }) => tmdbId,
(state) => state.settings.importExclusions, (state) => state.settings.importListExclusions,
(tmdbId, importExclusions) => { (tmdbId, importListExclusions) => {
return _.some(importExclusions.items, { tmdbId }); return _.some(importListExclusions.items, { tmdbId });
} }
); );
} }

Loading…
Cancel
Save