aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-10-01 10:24:44 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-10-02 09:23:02 +0200
commitbcb4b7ae52e9cda07ea97c3bea08ac50a779e1d7 (patch)
tree28ca1a28c5d9e8b18743d1e06d20b70d51eb98b8 /server/sonar-web/src/main/js/apps
parentc9eccbdea6b34301107cddbfec45179c724837a0 (diff)
downloadsonarqube-bcb4b7ae52e9cda07ea97c3bea08ac50a779e1d7.tar.gz
sonarqube-bcb4b7ae52e9cda07ea97c3bea08ac50a779e1d7.zip
SONAR-6587 use new api/components/search_view_components
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-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 {