diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-07-17 18:41:37 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-07-17 18:41:37 +0600 |
commit | 980debe1ff695ed0eb923f65c80eb6bddb6c6358 (patch) | |
tree | 16abe95f6bfea94ad199121e01252df13cd4f393 | |
parent | f604b6b97dc527cc929b2b3ff1301d63188081fd (diff) | |
download | sonarqube-980debe1ff695ed0eb923f65c80eb6bddb6c6358.tar.gz sonarqube-980debe1ff695ed0eb923f65c80eb6bddb6c6358.zip |
Fix issue with the component viewer
when it has one issue selected
-rw-r--r-- | sonar-server/src/main/coffee/component-viewer/app.coffee | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/app.coffee b/sonar-server/src/main/coffee/component-viewer/app.coffee index f398d217ba9..7994287166a 100644 --- a/sonar-server/src/main/coffee/component-viewer/app.coffee +++ b/sonar-server/src/main/coffee/component-viewer/app.coffee @@ -34,10 +34,11 @@ requirejs [ viewerRegion: '#component-viewer' - App.requestComponentViewer = (s) -> + App.requestComponentViewer = (s, currentIssue) -> if s? settings = issues: false, coverage: false, duplications: false, scm: false, workspace: false s.split(',').forEach (d) -> settings[d] = true + settings.issues = false if currentIssue? else settings = null unless App.componentViewer? App.componentViewer = new ComponentViewer settings: settings @@ -53,7 +54,7 @@ requirejs [ t = d.split '=' params[t[0]] = decodeURIComponent t[1] - viewer = App.requestComponentViewer params.settings + viewer = App.requestComponentViewer params.settings, params.currentIssue if params.component? loadIssue = (key) -> $.get API_ISSUE, key: key, (r) => |