]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7149 do not display breadcrumbs when searching
authorStas Vilchik <vilchiks@gmail.com>
Thu, 7 Jan 2016 11:17:32 +0000 (12:17 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 7 Jan 2016 13:15:57 +0000 (14:15 +0100)
server/sonar-web/src/main/js/apps/code/components/Code.js

index 9a2dc252558daa3db129253902044e79472179ad..f2c61b51ec73ec02c3737c3e6378879d82a3891f 100644 (file)
@@ -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 });