Fix New Version notification not showing

Fixes #2716.
This commit is contained in:
Roland Schilter
2017-07-17 16:31:02 +02:00
parent e603a28ca4
commit 1f784ad5fa
2 changed files with 5 additions and 4 deletions

View File

@@ -650,7 +650,8 @@ export function receiveApiDetails(apiDetails) {
type: ActionTypes.RECEIVE_API_DETAILS,
hostname: apiDetails.hostname,
version: apiDetails.version,
plugins: apiDetails.plugins
newVersion: apiDetails.newVersion,
plugins: apiDetails.plugins,
};
}

View File

@@ -41,7 +41,7 @@ class Footer extends React.Component {
const forceRelayoutTitle = 'Force re-layout (might reduce edge crossings, '
+ 'but may shift nodes around)';
const versionUpdateTitle = versionUpdate
? `New version available: ${versionUpdate.version}. Click to download`
? `New version available: ${versionUpdate.get('version')} Click to download`
: '';
return (
@@ -50,9 +50,9 @@ class Footer extends React.Component {
{versionUpdate && <a
className="footer-versionupdate"
title={versionUpdateTitle}
href={versionUpdate.downloadUrl}
href={versionUpdate.get('downloadUrl')}
target="_blank" rel="noopener noreferrer">
Update available: {versionUpdate.version}
Update available: {versionUpdate.get('version')}
</a>}
<span className="footer-label">Version</span>
{version}