aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/coffee/component-viewer
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-07-17 19:05:01 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-07-18 09:23:34 +0600
commit6397e5b8edb9d46f7caefb7dcd0cd4994f135871 (patch)
tree66dd665a44a1dcec6f409acdc526d397a0a2e9ad /server/sonar-web/src/main/coffee/component-viewer
parent5df2d2e6fa4cb7201c125115934c97076c550d55 (diff)
downloadsonarqube-6397e5b8edb9d46f7caefb7dcd0cd4994f135871.tar.gz
sonarqube-6397e5b8edb9d46f7caefb7dcd0cd4994f135871.zip
Sort issues on a same line in the Component Viewer
Diffstat (limited to 'server/sonar-web/src/main/coffee/component-viewer')
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee b/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee
index 2bee7384f30..8e38c7f2d39 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee
@@ -19,9 +19,10 @@ define [
extra_fields: 'actions,transitions,assigneeName,actionPlanName'
$.get API_ISSUES, options, (data) =>
@state.set 'hasIssues', true
+ issues = _.sortBy data.issues, (issue) -> "#{issue.rule}_____#{issue.message}"
@source.set
- issues: data.issues
- activeIssues: data.issues.filter (issue) -> !issue.resolution
+ issues: issues
+ activeIssues: issues.filter (issue) -> !issue.resolution
showIssues: (store = false, issue) ->