mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 20:07:06 +00:00
Merge pull request #2230 from weaveworks/2227-search-help
Fix help menu not opening from 'search' hint
This commit is contained in:
@@ -140,7 +140,7 @@ class Search extends React.Component {
|
||||
{!showPinnedSearches && <div className="search-hint">
|
||||
{getHint(nodes)} <span
|
||||
className="search-help-link fa fa-question-circle"
|
||||
onClick={onClickHelp} />
|
||||
onMouseDown={onClickHelp} />
|
||||
</div>}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -271,7 +271,7 @@ export function getSearchableFields(nodes) {
|
||||
|
||||
const tableRowLabels = nodes.reduce((labels, node) => (
|
||||
labels.union(get(node, 'tables').flatMap(t => (t.get('rows') || makeList)
|
||||
.map(f => f.get('label'))
|
||||
.map(f => f.getIn(['entries', 'label']))
|
||||
))
|
||||
), makeSet());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user