diff --git a/client/app/scripts/actions/app-actions.js b/client/app/scripts/actions/app-actions.js index ae25c8770..86d75f0db 100644 --- a/client/app/scripts/actions/app-actions.js +++ b/client/app/scripts/actions/app-actions.js @@ -35,15 +35,16 @@ import { RESOURCE_VIEW_MODE, } from '../constants/naming'; + const log = debug('scope:app-actions'); export function showHelp() { - return {type: ActionTypes.SHOW_HELP}; + return { type: ActionTypes.SHOW_HELP }; } export function hideHelp() { - return {type: ActionTypes.HIDE_HELP}; + return { type: ActionTypes.HIDE_HELP }; } diff --git a/client/app/scripts/components/search.js b/client/app/scripts/components/search.js index 0b40a438f..6bcf73e00 100644 --- a/client/app/scripts/components/search.js +++ b/client/app/scripts/components/search.js @@ -3,7 +3,7 @@ import { connect } from 'react-redux'; import classnames from 'classnames'; import { debounce } from 'lodash'; -import { blurSearch, doSearch, focusSearch, showHelp } from '../actions/app-actions'; +import { blurSearch, doSearch, focusSearch, toggleHelp } from '../actions/app-actions'; import { searchMatchCountByTopologySelector } from '../selectors/search'; import { isResourceViewModeSelector } from '../selectors/topology'; import { slugify } from '../utils/string-utils'; @@ -103,8 +103,8 @@ class Search extends React.Component { } render() { - const { nodes, pinnedSearches, searchFocused, searchMatchCountByTopology, isResourceViewMode, - searchQuery, topologiesLoaded, onClickHelp, inputId = 'search' } = this.props; + const { nodes, pinnedSearches, searchFocused, searchMatchCountByTopology, + isResourceViewMode, searchQuery, topologiesLoaded, inputId = 'search' } = this.props; const hidden = !topologiesLoaded || isResourceViewMode; const disabled = this.props.isTopologyEmpty && !hidden; const matchCount = searchMatchCountByTopology @@ -143,7 +143,7 @@ class Search extends React.Component { {!showPinnedSearches &&