Commit 4cb29687 authored by colemanw's avatar colemanw

CRM-13823 - Only count status messages with priority >= 3

parent 826f5ace
......@@ -5,7 +5,6 @@
]);
// router
angular.module('statuspage').config( function($routeProvider) {
$routeProvider.when('/status', {
controller: 'statuspageStatusPage',
......
......@@ -24,8 +24,10 @@
});
};
$scope.countVisible = function(is_visible) {
return _.where($scope.statuses, {is_visible: is_visible}).length;
$scope.countVisible = function(visibility) {
return _.filter($scope.statuses, function(s) {
return s.is_visible == visibility && s.severity_id >= 3;
}).length;
};
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment