aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/widgets
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-03-19 16:04:13 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-03-19 16:12:31 +0100
commit3c498e6bf0f1904d2397921e94e57db8c86f44a5 (patch)
treed6eccc1d606d7f4fd09e7c100ca119bb0287fb40 /server/sonar-web/src/main/js/widgets
parentfd942a8ebdc69149c904144d80a82f2e5c41fcb3 (diff)
downloadsonarqube-3c498e6bf0f1904d2397921e94e57db8c86f44a5.tar.gz
sonarqube-3c498e6bf0f1904d2397921e94e57db8c86f44a5.zip
SONAR-6236 do not show resolved and closed issues when query has unresolved criterion
Diffstat (limited to 'server/sonar-web/src/main/js/widgets')
-rw-r--r--server/sonar-web/src/main/js/widgets/issue-filter.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/widgets/issue-filter.js b/server/sonar-web/src/main/js/widgets/issue-filter.js
index e43c28ab946..c1f9c4a2760 100644
--- a/server/sonar-web/src/main/js/widgets/issue-filter.js
+++ b/server/sonar-web/src/main/js/widgets/issue-filter.js
@@ -56,6 +56,11 @@ define(['templates/widgets'], function () {
comparator: function (item) {
var order = ['OPEN', 'REOPENED', 'CONFIRMED', 'RESOLVED', 'CLOSED'];
return order.indexOf(item.val);
+ },
+ filter: function (item) {
+ var unresolvedQuery = '' + this.query.resolved === 'false',
+ resolvedStatus = item.val === 'RESOLVED' || item.val === 'CLOSED';
+ return !(unresolvedQuery && resolvedStatus);
}
},
'resolutions': {