Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix New Version notification not showing #2720

Merged
merged 1 commit into from
Jul 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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