Disable 'Install' in notification window
This commit is contained in:
@@ -33,10 +33,6 @@ export default connect(mapStateToProps, mapDispatchToProps)(({
|
||||
installReleaseByVersion
|
||||
}) => {
|
||||
const title = '[' + Constants.RELEASE_TYPES[release.Release] + '] ' + release.Display;
|
||||
const installReleaseVersion = () => {
|
||||
dismiss();
|
||||
installReleaseByVersion(release.Release, release.Version);
|
||||
};
|
||||
const displayChanges = async () => {
|
||||
try {
|
||||
const lines = await getChangesForRepertoryVersion(release.VersionString);
|
||||
@@ -46,6 +42,14 @@ export default connect(mapStateToProps, mapDispatchToProps)(({
|
||||
}
|
||||
};
|
||||
|
||||
// TODO Switch to activate
|
||||
/*const installReleaseVersion = () => {
|
||||
dismiss();
|
||||
installReleaseByVersion(release.Release, release.Version);
|
||||
};
|
||||
{AllowInstall ?
|
||||
<Button buttonStyles={{width: '100%'}}
|
||||
clicked={installReleaseVersion}>Install</Button> : null}*/
|
||||
return (
|
||||
<div>
|
||||
<h2>{title}</h2>
|
||||
@@ -60,9 +64,6 @@ export default connect(mapStateToProps, mapDispatchToProps)(({
|
||||
<div style={{width: 'var(--default_spacing)'}}/>
|
||||
</td>
|
||||
<td width="50%">
|
||||
{AllowInstall ?
|
||||
<Button buttonStyles={{width: '100%'}}
|
||||
clicked={installReleaseVersion}>Install</Button> : null}
|
||||
</td>
|
||||
</tr>
|
||||
{lastItem ? null : <tr style={{height: 'var(--default_spacing)'}}/>}
|
||||
|
||||
Reference in New Issue
Block a user