Skip to content

Commit

Permalink
Ensure search notice is always shown on search value change
Browse files Browse the repository at this point in the history
  • Loading branch information
jaszhix committed Jul 7, 2017
1 parent 1f3be75 commit 0167de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/components/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class Search extends React.Component {
</div>
</Col>
<Col size={p.s.width <= 825 ? p.s.width <= 630 ? p.s.width <= 514 ? '2' : '4' : '6' : '8'} style={{float: 'right'}}>
{p.s.search.length > 3 ? <span style={{color: p.theme.textFieldsPlaceholder}} className="search-msg ntg-search-google-text">{`${utils.t('pressEnterToSearch')} ${utils.t('google')}`}</span> : null}
{p.s.search.length > 0 ? <span style={{color: p.theme.textFieldsPlaceholder}} className="search-msg ntg-search-google-text">{`${utils.t('pressEnterToSearch')} ${utils.t('google')}`}</span> : null}
{p.s.topNavButton === 'newVersion' ? <Btn onClick={()=>this.handleTopNavButtonClick(()=>chrome.runtime.reload())} style={topNavButtonStyle} className="ntg-sort-btn pull-right" fa="rocket" data-place="bottom" data-tip={p.s.width <= 841 ? utils.t('newVersionAvailable') : null}>{p.s.width <= 841 ? '' : utils.t('newVersionAvailable')}</Btn> : null}
{p.s.topNavButton === 'versionUpdate' ? <Btn onClick={()=>this.handleTopNavButtonClick(()=>this.openAbout())} style={topNavButtonStyle} className="ntg-sort-btn pull-right" icon="info3" data-place="bottom" data-tip={p.s.width <= 841 ? `${utils.t('updatedTo')} ${utilityStore.get_manifest().version}` : null}>{p.s.width <= 841 ? '' : `${utils.t('updatedTo')} ${utilityStore.get_manifest().version}`}</Btn> : null}
{p.s.topNavButton === 'installed' ? <Btn onClick={()=>this.handleTopNavButtonClick(()=>this.openAbout())} style={topNavButtonStyle} className="ntg-sort-btn pull-right" fa="thumbs-o-up" data-place="bottom" data-tip={p.s.width <= 841 ? utils.t('thankYouForInstallingTM5K') : null}>{p.s.width <= 841 ? '' : utils.t('thankYouForInstallingTM5K')}</Btn> : null}
Expand Down

0 comments on commit 0167de4

Please sign in to comment.