Skip to content

Commit

Permalink
Merge pull request #139 from tidepool-org/jebeck/add-KB-link
Browse files Browse the repository at this point in the history
add KB link
  • Loading branch information
jebeck committed Aug 13, 2015
2 parents c54c174 + bce1286 commit c557167
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ var App = React.createClass({
return (
// TODO: add the link to help page on tidepool.org or knowledge base
// re: how to update the uploader
<UpdatePlease link={''} />
<UpdatePlease link={this.state.howToUpdateKBLink} />
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/components/UpdatePlease.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var UpdatePlease = React.createClass({
return (
<div className="UpdatePlease">
<p>{text.OUT_OF_DATE}</p>
<p className='most-important'>{text.TO_UPDATE}<a href={this.props.link}>{text.LINK_TEXT}</a>.</p>
<p className='most-important'>{text.TO_UPDATE}<a target="_blank" href={this.props.link}>{text.LINK_TEXT}</a>.</p>
<p>{text.TRY_AGAIN}</p>
</div>
);
Expand Down
11 changes: 6 additions & 5 deletions lib/state/appState.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ appState.getInitial = function() {
// name: 'OneTouch UltraMini',
// key: 'onetouchmini',
// source: {type: 'device', driverId: 'OneTouchMini'}
// },
// {
// name: 'Bayer Contour Next',
// key: 'bayercontournext',
// source: {type: 'device', driverId: 'BayerContourNext'}
// }
{
name: 'Bayer Contour Next',
key: 'bayercontournext',
source: {type: 'device', driverId: 'BayerContourNext'}
}
];

if (config.CARELINK) {
Expand All @@ -68,6 +68,7 @@ appState.getInitial = function() {

return {
dropMenu: false,
howToUpdateKBLink: 'https://tidepool-project.helpscoutdocs.com/article/6-how-to-install-or-upgrade-the-tidepool-uploader-gen',
page: 'loading',
user: null,
targetId: null,
Expand Down

0 comments on commit c557167

Please sign in to comment.