From: Stas Vilchik Date: Mon, 3 Mar 2014 14:51:30 +0000 (+0100) Subject: SONAR-4366 Quality Gates: enable all actions X-Git-Tag: 4.3~598 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6a5254cbcf41f0221cfc1597d211252ac8d5d306;p=sonarqube.git SONAR-4366 Quality Gates: enable all actions --- diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/app.coffee b/sonar-server/src/main/webapp/javascripts/quality-gate/app.coffee index 18971082a92..5c316a85f75 100644 --- a/sonar-server/src/main/webapp/javascripts/quality-gate/app.coffee +++ b/sonar-server/src/main/webapp/javascripts/quality-gate/app.coffee @@ -113,7 +113,7 @@ requirejs [ jQuery.when(App.metrics.fetch(), qualityGatesXHR) .done -> # Set permissions - App.canEdit = false #qualityGatesXHR.responseJSON.edit + App.canEdit = true #qualityGatesXHR.responseJSON.edit # Remove the initial spinner jQuery('.quality-gate-page-loader').remove() diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/app.js b/sonar-server/src/main/webapp/javascripts/quality-gate/app.js index 972313802b8..05ae2d824c8 100644 --- a/sonar-server/src/main/webapp/javascripts/quality-gate/app.js +++ b/sonar-server/src/main/webapp/javascripts/quality-gate/app.js @@ -104,7 +104,7 @@ }); qualityGatesXHR = App.qualityGates.fetch(); return jQuery.when(App.metrics.fetch(), qualityGatesXHR).done(function() { - App.canEdit = false; + App.canEdit = true; jQuery('.quality-gate-page-loader').remove(); return App.start(); });