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