From: Stas Vilchik Date: Thu, 7 Jan 2016 11:17:32 +0000 (+0100) Subject: SONAR-7149 do not display breadcrumbs when searching X-Git-Tag: 5.4-M4~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=990a2cfaed2a75f01e030a9bf8252b3dd4cd223a;p=sonarqube.git SONAR-7149 do not display breadcrumbs when searching --- diff --git a/server/sonar-web/src/main/js/apps/code/components/Code.js b/server/sonar-web/src/main/js/apps/code/components/Code.js index 9a2dc252558..f2c61b51ec7 100644 --- a/server/sonar-web/src/main/js/apps/code/components/Code.js +++ b/server/sonar-web/src/main/js/apps/code/components/Code.js @@ -62,10 +62,10 @@ class Code extends Component { coverageMetric, searchResults, errorMessage } = this.props; - const shouldShowBreadcrumbs = Array.isArray(breadcrumbs) && breadcrumbs.length > 1; const shouldShowSearchResults = !!searchResults; const shouldShowSourceViewer = !!sourceViewer; const shouldShowComponents = !shouldShowSearchResults && !shouldShowSourceViewer && components; + const shouldShowBreadcrumbs = !shouldShowSearchResults && Array.isArray(breadcrumbs) && breadcrumbs.length > 1; const componentsClassName = classNames('spacer-top', { 'new-loading': fetching });