Skip to content

Commit

Permalink
Fix New Version notification not showing
Browse files Browse the repository at this point in the history
Fixes #2716.
  • Loading branch information
rndstr committed Jul 17, 2017
1 parent e603a28 commit 1f784ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion client/app/scripts/actions/app-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

Expand Down
6 changes: 3 additions & 3 deletions client/app/scripts/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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}
Expand Down

0 comments on commit 1f784ad

Please sign in to comment.