Fixed: author manual import (#32)

* Fix: apply fix from Lidarr to the Readarr manual import modal

* Rename Album to Book in the identification override

* Rename "audio" to "book" in the interactive import modal empty message
This commit is contained in:
Thomas Mathews
2020-05-26 20:55:40 +01:00
committed by GitHub
parent 3f8733830a
commit d83d2548e5
8 changed files with 41 additions and 12 deletions
@@ -52,6 +52,7 @@ class InteractiveImportModalContentConnector extends Component {
componentDidMount() {
const {
authorId,
downloadId,
folder
} = this.props;
@@ -62,6 +63,7 @@ class InteractiveImportModalContentConnector extends Component {
} = this.state;
this.props.fetchInteractiveImportItems({
authorId,
downloadId,
folder,
filterExistingFiles,
@@ -78,11 +80,13 @@ class InteractiveImportModalContentConnector extends Component {
if (prevState.filterExistingFiles !== filterExistingFiles ||
prevState.replaceExistingFiles !== replaceExistingFiles) {
const {
authorId,
downloadId,
folder
} = this.props;
this.props.fetchInteractiveImportItems({
authorId,
downloadId,
folder,
filterExistingFiles,
@@ -195,6 +199,7 @@ class InteractiveImportModalContentConnector extends Component {
}
InteractiveImportModalContentConnector.propTypes = {
authorId: PropTypes.number,
downloadId: PropTypes.string,
folder: PropTypes.string,
filterExistingFiles: PropTypes.bool.isRequired,
@@ -210,6 +215,7 @@ InteractiveImportModalContentConnector.propTypes = {
};
InteractiveImportModalContentConnector.defaultProps = {
authorId: 0,
filterExistingFiles: true,
replaceExistingFiles: false
};