aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/coffee
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-04-11 16:56:30 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-04-11 16:56:30 +0600
commit6edb8903b75cdf24ccc69a94701d2432fd8c6925 (patch)
treec03f827085787ff9d2c7fd1babcc31e4a0dd06c3 /sonar-server/src/main/coffee
parent3e394ec72af32e20516a9d1396b329fc299300d8 (diff)
downloadsonarqube-6edb8903b75cdf24ccc69a94701d2432fd8c6925.tar.gz
sonarqube-6edb8903b75cdf24ccc69a94701d2432fd8c6925.zip
Update confirmation labels
Diffstat (limited to 'sonar-server/src/main/coffee')
-rw-r--r--sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-condition-view.coffee4
-rw-r--r--sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee2
2 files changed, 5 insertions, 1 deletions
diff --git a/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-condition-view.coffee b/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-condition-view.coffee
index 6535003e0fc..e73343ac80b 100644
--- a/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-condition-view.coffee
+++ b/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-condition-view.coffee
@@ -97,7 +97,9 @@ define [
deleteCondition: ->
confirmDialog
title: t 'quality_gates.delete_condition'
- html: t('quality_gates.delete_condition.confirm.message')
+ html: tp 'quality_gates.delete_condition.confirm.message', @model.get('metric').name
+ yesLabel: t 'delete'
+ noLabel: t 'cancel'
yesHandler: =>
@showSpinner()
@model.delete().done =>
diff --git a/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee b/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee
index 24fbf33f657..5575f63b1b6 100644
--- a/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee
+++ b/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee
@@ -49,6 +49,8 @@ define [
confirmDialog
title: t 'quality_gates.delete'
html: message
+ yesLabel: t 'delete'
+ noLabel: t 'cancel'
yesHandler: =>
@showSpinner()
jQuery.ajax