Permalink
Browse files

feat(App): Add link to changelog in app update notification

  • Loading branch information...
adlk committed Nov 20, 2017
1 parent 9d9e285 commit 2cbd938dce5901c2656c9aa128d600fba4ef209c
Showing with 17 additions and 3 deletions.
  1. +7 −1 src/components/layout/AppLayout.js
  2. +5 −2 src/components/ui/InfoBar.js
  3. +1 −0 src/i18n/locales/en-US.json
  4. +4 −0 src/styles/info-bar.scss
@@ -23,6 +23,10 @@ const messages = defineMessages({
id: 'infobar.buttonReloadServices',
defaultMessage: '!!!Reload services',
},
changelog: {
id: 'infobar.buttonChangelog',
defaultMessage: '!!!Changelog',
},
buttonInstallUpdate: {
id: 'infobar.buttonInstallUpdate',
defaultMessage: '!!!Restart & install update',
@@ -135,7 +139,9 @@ export default class AppLayout extends Component {
sticky
>
<span className="mdi mdi-information" />
{intl.formatMessage(messages.updateAvailable)}
{intl.formatMessage(messages.updateAvailable)} <a href="https://meetfranz.com/changelog" target="_blank">
<u>{intl.formatMessage(messages.changelog)}</u>
</a>
</InfoBar>
)}
{services}
@@ -61,10 +61,13 @@ export default class InfoBar extends Component {
[`${className}`]: true,
})}
>
<div onClick={onClick} className="info-bar__content">
<div className="info-bar__content">
{children}
{ctaLabel && (
<button className="info-bar__cta">
<button
className="info-bar__cta"
onClick={onClick}
>
<Loader
loaded={!ctaLoading}
lines={10}
@@ -58,6 +58,7 @@
"infobar.updateAvailable": "A new update for Franz is available.",
"infobar.buttonReloadServices": "Reload services",
"infobar.buttonInstallUpdate": "Restart & install update",
"infobar.buttonChangelog": "What is new?",
"infobar.requiredRequestsFailed": "Could not load services and user information",
"sidebar.settings": "Settings",
"sidebar.addNewService": "Add new service",
@@ -46,6 +46,10 @@
}
}
a {
// text-decoration: underline;
}
&.info-bar--bottom {
order: 10;
}

0 comments on commit 2cbd938

Please sign in to comment.