aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/facets/project-facet.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/facets/project-facet.js')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/facets/project-facet.js6
1 files changed, 3 insertions, 3 deletions
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 {