diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-05-05 14:45:05 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-05-09 11:15:45 +0200 |
commit | 464e95be6c8d4ed4e83dd4811b332047ec6dfee5 (patch) | |
tree | a4394c480a061dd86a30077f9193591ff6cc0759 /server/sonar-web/src/main/js/apps/issues/sidebar | |
parent | fbdda573c5f20a65c86767f6b7828c99dd1e9774 (diff) | |
download | sonarqube-464e95be6c8d4ed4e83dd4811b332047ec6dfee5.tar.gz sonarqube-464e95be6c8d4ed4e83dd4811b332047ec6dfee5.zip |
SONAR-9118 Fix issue project facet and organization name in front of issue
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/sidebar')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/ProjectFacet.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/ProjectFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/ProjectFacet.js index 0fe8bc84ffb..d7b7becca9f 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/ProjectFacet.js +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/ProjectFacet.js @@ -28,7 +28,7 @@ import FacetFooter from './components/FacetFooter'; import type { ReferencedComponent, Component } from '../utils'; import Organization from '../../../components/shared/Organization'; import QualifierIcon from '../../../components/shared/QualifierIcon'; -import { searchComponents, getTree } from '../../../api/components'; +import { searchProjects, getTree } from '../../../api/components'; import { translate } from '../../../helpers/l10n'; type Props = {| @@ -78,7 +78,10 @@ export default class ProjectFacet extends React.PureComponent { value: component.refId })) ) - : searchComponents({ ps: 50, q: query, qualifiers: 'TRK' }).then(response => + : searchProjects({ + ps: 50, + filter: query ? `query = "${query}"` : '' + }).then(response => response.components.map(component => ({ label: component.name, organization: component.organization, |