From: Stas Vilchik Date: Thu, 1 Oct 2015 08:24:44 +0000 (+0200) Subject: SONAR-6587 use new api/components/search_view_components X-Git-Tag: 5.2-RC1~125 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bcb4b7ae52e9cda07ea97c3bea08ac50a779e1d7;p=sonarqube.git SONAR-6587 use new api/components/search_view_components --- diff --git a/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js index ba84cb017a2..5c8eef0fd0e 100644 --- a/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js +++ b/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js @@ -6,7 +6,7 @@ export default CustomValuesFacet.extend({ getUrl: function () { var q = this.options.app.state.get('contextComponentQualifier'); if (q === 'VW' || q === 'SVW') { - return baseUrl + '/api/components/search'; + return baseUrl + '/api/components/search_view_components'; } else { return baseUrl + '/api/resources/search?f=s2&q=TRK&display_uuid=true'; } @@ -22,7 +22,7 @@ export default CustomValuesFacet.extend({ }, prepareSearchForViews: function () { - var componentUuid = this.options.app.state.get('contextComponentUuid'); + var componentId = this.options.app.state.get('contextComponentUuid'); return this.$('.js-custom-value').select2({ placeholder: 'Search...', minimumInputLength: 2, @@ -41,7 +41,7 @@ export default CustomValuesFacet.extend({ quietMillis: 300, url: this.getUrl(), data: function (term, page) { - return { q: term, componentUuid: componentUuid, p: page, ps: 25 }; + return { q: term, componentId: componentId, p: page, ps: 25 }; }, results: function (data) { return {