aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js b/server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js
index 4a54eb289c6..75ffc986086 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/views/rename-view.js
@@ -36,14 +36,14 @@ export default ModalForm.extend({
const name = this.$('#quality-gate-form-name').val();
renameQualityGate(id, name).then(
- () => {
- this.destroy();
- this.options.onRename(this.options.qualityGate, name);
- },
- error => {
- this.enableForm();
- parseError(error).then(msg => this.showErrors([{ msg }]));
- }
+ () => {
+ this.destroy();
+ this.options.onRename(this.options.qualityGate, name);
+ },
+ error => {
+ this.enableForm();
+ parseError(error).then(msg => this.showErrors([{ msg }]));
+ }
);
},