aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-01-07 12:17:32 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-01-07 14:15:57 +0100
commit990a2cfaed2a75f01e030a9bf8252b3dd4cd223a (patch)
tree89702abd56736d408b002b7e21aa72d6144bba05
parenteb872c65237fab7f854f617ec9f7a51c8cc82977 (diff)
downloadsonarqube-990a2cfaed2a75f01e030a9bf8252b3dd4cd223a.tar.gz
sonarqube-990a2cfaed2a75f01e030a9bf8252b3dd4cd223a.zip
SONAR-7149 do not display breadcrumbs when searching
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/Code.js2
1 files changed, 1 insertions, 1 deletions
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 });