]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Fix the scm decorator
authorStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 06:37:06 +0000 (12:37 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 06:37:06 +0000 (12:37 +0600)
sonar-server/src/main/coffee/component-viewer/main.coffee

index 19148f0032a84e1fa3754fb68780fb5a2de79e25..a8db19334cb8ed07e9b7c3be3c61eb6fd44322c2 100644 (file)
@@ -83,6 +83,7 @@ define [
       if options.settings?
         options.settings = JSON.parse(options.settings) if typeof options.settings == 'string'
         @settings.set options.settings
+      @settings.set 'scm', !!localStorage.getItem('componentViewerSCM')
       @shouldStoreSettings = options.shouldStoreSettings
 
       @state = new State()
@@ -108,11 +109,10 @@ define [
 
 
     getDefaultSettings: ->
-      scm = !!localStorage.getItem('componentViewerSCM')
       issues: false
       coverage: false
       duplications: false
-      scm: scm
+      scm: false
       workspace: false