Fix dependency install
This commit is contained in:
@@ -5,7 +5,9 @@ import * as Constants from '../../../constants';
|
|||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
return {
|
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 => {
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{props.AllowDownload ?
|
{props.AllowDownload ?
|
||||||
<a href={void(0)} className={'DependencyLink'} onClick={()=>{props.onDownload(props.download); return false;}}><u>Install</u></a> :
|
<a
|
||||||
|
href={void(0)}
|
||||||
|
className={'DependencyLink'}
|
||||||
|
onClick={()=>{props.onDownload(props.download); return false;}}><u>Install</u></a> :
|
||||||
'Installing...'}
|
'Installing...'}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user