]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6587 use new api/components/search_view_components 550/head
authorStas Vilchik <vilchiks@gmail.com>
Thu, 1 Oct 2015 08:24:44 +0000 (10:24 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 2 Oct 2015 07:23:02 +0000 (09:23 +0200)
server/sonar-web/src/main/js/apps/issues/facets/project-facet.js

index ba84cb017a24ed23c74820181abfc81efd90fa32..5c8eef0fd0ef03d916f1de7b57edd87612abf817 100644 (file)
@@ -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 {