0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-18 12:12:43 +00:00

Added a chrome detection tip to the status bar and updated the welcome text

This commit is contained in:
Scott
2016-02-19 21:27:49 -05:00
parent 8d61a21fa7
commit 267b88b225
4 changed files with 46 additions and 31 deletions

View File

@@ -74,6 +74,16 @@ var Statusbar = React.createClass({
},
renderChromeTip : function(){
if(typeof window !== 'undefined' && window.chrome) return;
return <div
className='chromeField'
data-tooltip="If you are noticing rendering issues, try using Chrome instead.">
<i className='fa fa-exclamation-triangle' />
Optimized for Chrome
</div>
},
renderSourceButton : function(){
if(!this.props.sourceText) return null;
@@ -146,6 +156,7 @@ var Statusbar = React.createClass({
</a>
</div>
<div className='controls right'>
{this.renderChromeTip()}
{this.renderChangelogButton()}
{this.renderStatus()}
{this.renderInfo()}