diff --git a/src/components/DependencyList/Dependency/Dependency.js b/src/components/DependencyList/Dependency/Dependency.js index 77a91f0..7600be7 100644 --- a/src/components/DependencyList/Dependency/Dependency.js +++ b/src/components/DependencyList/Dependency/Dependency.js @@ -5,7 +5,9 @@ import * as Constants from '../../../constants'; const mapStateToProps = state => { return { - AllowDownload: (state.download.DownloadType !== Constants.INSTALL_TYPES.Dependency), + AllowDownload: (state.download.DownloadType !== Constants.INSTALL_TYPES.Dependency) && + !state.download.DownloadActive && + !state.install.InstallActive, }; }; @@ -20,7 +22,10 @@ export default connect(mapStateToProps)(props => { {props.AllowDownload ? - {props.onDownload(props.download); return false;}}>Install : + {props.onDownload(props.download); return false;}}>Install : 'Installing...'}