aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js b/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
index c188c473be5..5337fad8c52 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
@@ -1,13 +1,15 @@
define([
+ 'backbone.marionette',
'components/common/select-list',
'./templates'
-], function () {
+], function (Marionette) {
return Marionette.ItemView.extend({
template: Templates['quality-gate-detail-projects'],
onRender: function () {
if (!this.model.isDefault()) {
+ //noinspection Eslint
new window.SelectList({
el: this.$('#select-list-projects'),
width: '100%',
@@ -16,23 +18,23 @@ define([
format: function (item) {
return item.name;
},
- searchUrl: baseUrl + '/api/qualitygates/search?gateId=' + this.model.id,
- selectUrl: baseUrl + '/api/qualitygates/select',
- deselectUrl: baseUrl + '/api/qualitygates/deselect',
+ searchUrl: window.baseUrl + '/api/qualitygates/search?gateId=' + this.model.id,
+ selectUrl: window.baseUrl + '/api/qualitygates/select',
+ deselectUrl: window.baseUrl + '/api/qualitygates/deselect',
extra: {
gateId: this.model.id
},
selectParameter: 'projectId',
selectParameterValue: 'id',
labels: {
- selected: t('quality_gates.projects.with'),
- deselected: t('quality_gates.projects.without'),
- all: t('quality_gates.projects.all'),
- noResults: t('quality_gates.projects.noResults')
+ selected: window.t('quality_gates.projects.with'),
+ deselected: window.t('quality_gates.projects.without'),
+ all: window.t('quality_gates.projects.all'),
+ noResults: window.t('quality_gates.projects.noResults')
},
tooltips: {
- select: t('quality_gates.projects.select_hint'),
- deselect: t('quality_gates.projects.deselect_hint')
+ select: window.t('quality_gates.projects.select_hint'),
+ deselect: window.t('quality_gates.projects.deselect_hint')
}
});
}