Merge pull request #2720 from weaveworks/2716-fix-newVersion-notification-not-showing

Fix New Version notification not showing
This commit is contained in:
Roland Schilter
2017-07-19 11:45:29 +02:00
committed by GitHub
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}