File tree 2 files changed +26
-2
lines changed
library/Notifications/Widget/ItemList
2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ protected function assembleVisual(BaseHtmlElement $visual): void
31
31
$ content = new Icon ($ incidentIcon , ['class ' => 'severity- ' . $ this ->item ->new_severity ]);
32
32
} else {
33
33
$ content = new IconBall ($ incidentIcon );
34
+
35
+ if ($ this ->item ->type === 'notified ' ) {
36
+ $ content ->addAttributes (['class ' => ['notification ' , $ this ->item ->notification_state ]]);
37
+ }
34
38
}
35
39
36
40
$ visual ->addHtml ($ content );
Original file line number Diff line number Diff line change 27
27
}
28
28
}
29
29
30
- .list-item.notification-suppressed {
31
- opacity : .75 ;
30
+ .list-item {
31
+ & .notification-suppressed {
32
+ opacity : .75 ;
33
+ }
34
+
35
+ .visual .notification {
36
+ & .failed {
37
+ color : @state-critical ;
38
+ }
39
+
40
+ & .pending {
41
+
42
+ }
43
+
44
+ & .suppressed {
45
+ color : @state-warning ;
46
+ }
47
+
48
+ & .sent {
49
+ color : @state-ok ;
50
+ }
51
+ }
32
52
}
33
53
}
You can’t perform that action at this time.
0 commit comments