From 96908fc4cdbb63f54ca2500b6435f5be4f3c5110 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 27 Jun 2019 14:12:08 -0500 Subject: [PATCH] Fix dependency install --- src/components/DependencyList/Dependency/Dependency.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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...'}