mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
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:
@@ -408,7 +408,7 @@ class InteractiveImportModalContent extends Component {
|
||||
|
||||
{
|
||||
isPopulated && !items.length && !isFetching &&
|
||||
'No audio files were found in the selected folder'
|
||||
'No book files were found in the selected folder'
|
||||
}
|
||||
</ModalBody>
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user