aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-21 16:58:37 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-21 16:58:37 +0200
commitb3ccc7214453e48ce514c9b75ce18ef2febcf8f5 (patch)
treecec53edebd33c14ab5c87115d0f18ccfe0febd2a
parent1eb5dbdab56e6948ea96ed11e62a399ae9c7d2c3 (diff)
downloadsonarqube-b3ccc7214453e48ce514c9b75ce18ef2febcf8f5.tar.gz
sonarqube-b3ccc7214453e48ce514c9b75ce18ef2febcf8f5.zip
SONAR-3373 Fix availability of edit/delete buttons on rules
-rw-r--r--server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
index 772cd484040..ea09c673321 100644
--- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
+++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
@@ -320,7 +320,9 @@ define [
contextQualityProfile = @options.app.getQualityProfile()
repoKey = @model.get 'repo'
isManual = (@options.app.manualRepository().key == repoKey)
- isCustom = (@model.get('templateKey') != null)
+ console.log isManual
+ isCustom = (@model.has 'templateKey')
+ console.log isCustom
qualityProfilesVisible = not isManual
if qualityProfilesVisible