mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 11:48:26 -07:00
Fixed: Manual import from artist page forces correct artist
This commit is contained in:
parent
fb88017821
commit
8771e715ae
5 changed files with 34 additions and 6 deletions
|
@ -52,6 +52,7 @@ class InteractiveImportModalContentConnector extends Component {
|
|||
|
||||
componentDidMount() {
|
||||
const {
|
||||
artistId,
|
||||
downloadId,
|
||||
folder
|
||||
} = this.props;
|
||||
|
@ -62,6 +63,7 @@ class InteractiveImportModalContentConnector extends Component {
|
|||
} = this.state;
|
||||
|
||||
this.props.fetchInteractiveImportItems({
|
||||
artistId,
|
||||
downloadId,
|
||||
folder,
|
||||
filterExistingFiles,
|
||||
|
@ -78,11 +80,13 @@ class InteractiveImportModalContentConnector extends Component {
|
|||
if (prevState.filterExistingFiles !== filterExistingFiles ||
|
||||
prevState.replaceExistingFiles !== replaceExistingFiles) {
|
||||
const {
|
||||
artistId,
|
||||
downloadId,
|
||||
folder
|
||||
} = this.props;
|
||||
|
||||
this.props.fetchInteractiveImportItems({
|
||||
artistId,
|
||||
downloadId,
|
||||
folder,
|
||||
filterExistingFiles,
|
||||
|
@ -204,6 +208,7 @@ class InteractiveImportModalContentConnector extends Component {
|
|||
}
|
||||
|
||||
InteractiveImportModalContentConnector.propTypes = {
|
||||
artistId: PropTypes.number.isRequired,
|
||||
downloadId: PropTypes.string,
|
||||
folder: PropTypes.string,
|
||||
filterExistingFiles: PropTypes.bool.isRequired,
|
||||
|
@ -219,6 +224,7 @@ InteractiveImportModalContentConnector.propTypes = {
|
|||
};
|
||||
|
||||
InteractiveImportModalContentConnector.defaultProps = {
|
||||
artistId: 0,
|
||||
filterExistingFiles: true,
|
||||
replaceExistingFiles: false
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue