aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/gate-condition-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/gate-condition-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/gate-condition-view.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/gate-condition-view.js b/server/sonar-web/src/main/js/apps/quality-gates/gate-condition-view.js
index 0dfbea0ab17..7d9bbc741eb 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/gate-condition-view.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/gate-condition-view.js
@@ -1,7 +1,8 @@
define([
+ 'backbone.marionette',
'./gate-conditions-delete-view',
'./templates'
-], function (DeleteConditionView) {
+], function (Marionette, DeleteConditionView) {
return Marionette.ItemView.extend({
tagName: 'tr',
@@ -90,7 +91,7 @@ define([
return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
canEdit: this.options.canEdit,
periods: this.options.periods,
- periodText: period ? period.text : t('value'),
+ periodText: period ? period.text : window.t('value'),
metric: this.getMetric(),
isDiffMetric: this.isDiffMetric()
});