Add a filter to hide silenced alerts - #319
Conversation
|
I like this. What do you think about moving the check box to be beside the
receivers filter? That way the alerts don't move further down, and we have
a lot of space there for more filters.
|
|
Nice, thanks! 👍 |
There was a problem hiding this comment.
Can this just be ng-hide="hideSilenced"? Then you don't need any CSS... same for the other one in alert.html.
There was a problem hiding this comment.
@juliusv Hmm...I think that would hide the entire alert-groups node. In order to avoid the DOM / CSS approach we'd probably need to do something like this on the alert-item (untested)...
ng-hide="alert.silenced && hideSilenced"hideSilenced is currently a property on AlertsCtrls $scope. So we'd need to make it available in AlertCtrl either via $rootScope or a service. Thoughts?
There was a problem hiding this comment.
Ah, the nested nature of this wasn't apparent to me. All makes sense then, I guess keep it like it is.
|
@matthiasr I initially thought about floating and using that real estate, but then when I added it initially at the bottom I thought it looked fine. If we start having tons of filters we would probably want the two columns (and maybe even show more / show less). I thought it might look weird / lonely to have a second column with a lone checkbox. I can add a screenshot later though. |
d6480ff to
c319863
Compare
|
@matthiasr updated to use 2 columns for the filters. I tested it out and do think it looks better after all @fabxc anything holding back the merge here? |
|
LGTM
|
|
Thanks! |

An implementation for the feature request in #313.
Just uses CSS
display: noneto hide the silenced alerts. Worth noting that the alert group node will not be removed if all alerts are silenced (the UI feels like an accordion in this case).Before Filtering
After Filtering