Commit eb94a576 authored by Jon goldberg's avatar Jon goldberg

CRM-17885 - Allow hiding notices on status screen

parent e454361b
......@@ -233,8 +233,8 @@ class CRM_Utils_Check_Message {
*/
private function checkStatusPreference() {
$this->hiddenUntil = FALSE;
// Debug, info & notice can't be hidden
if ($this->level < 3) {
// Debug & info can't be hidden
if ($this->level < 2) {
return FALSE;
}
$statusPreferenceParams = array(
......
<div ng-if="!status.is_visible">
<button ng-click="setPref(status, '', 1)" type="button" >{{ts('Unhide')}}</button>
</div>
<div ng-if="status.is_visible && status.severity_id >= 3">
<div ng-if="status.is_visible && status.severity_id >= 2">
<button type="button" class="hush-menu-button">{{ts('Hide')}}</button>
<ul style="display:none;">
<li ng-click="setPref(status, 'now + 1 week', 0)">{{ts('Remind me again in a week')}}</li>
......
......@@ -26,7 +26,7 @@
$scope.countVisible = function(visibility) {
return _.filter($scope.statuses, function(s) {
return s.is_visible == visibility && s.severity_id >= 3;
return s.is_visible == visibility && s.severity_id >= 2;
}).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