File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ protected function assembleVisual(BaseHtmlElement $visual): void
50
50
}
51
51
52
52
$ stateChange ->setIcon ($ this ->state ->getIcon ());
53
- $ stateChange ->setHandled ($ this ->state ->is_handled || ! $ this ->state ->is_reachable );
53
+ $ stateChange ->setHandled (
54
+ $ this ->state ->is_problem && ($ this ->state ->is_handled || ! $ this ->state ->is_reachable )
55
+ );
54
56
55
57
$ visual ->addHtml ($ stateChange );
56
58
}
Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ protected function assembleVisual(BaseHtmlElement $visual): void
50
50
}
51
51
52
52
$ stateChange ->setIcon ($ this ->state ->getIcon ());
53
- $ stateChange ->setHandled ($ this ->state ->is_handled || ! $ this ->state ->is_reachable );
53
+ $ stateChange ->setHandled (
54
+ $ this ->state ->is_problem && ($ this ->state ->is_handled || ! $ this ->state ->is_reachable )
55
+ );
54
56
55
57
$ visual ->addHtml ($ stateChange );
56
58
}
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ protected function assembleVisual(BaseHtmlElement $visual): void
99
99
{
100
100
$ stateBall = new StateBall ($ this ->state ->getStateText (), $ this ->getStateBallSize ());
101
101
$ stateBall ->add ($ this ->state ->getIcon ());
102
- if ($ this ->state ->is_handled || ! $ this ->state ->is_reachable ) {
102
+ if ($ this ->state ->is_problem && ( $ this -> state -> is_handled || ! $ this ->state ->is_reachable ) ) {
103
103
$ stateBall ->getAttributes ()->add ('class ' , 'handled ' );
104
104
}
105
105
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ protected function assembleVisual(BaseHtmlElement $visual)
33
33
$ stateBall = new StateBall ($ this ->item ->state ->getStateText (), StateBall::SIZE_LARGE );
34
34
$ stateBall ->add ($ this ->item ->state ->getIcon ());
35
35
36
- if ($ this ->item ->state ->is_handled ) {
36
+ if ($ this ->item ->state ->is_problem && ( $ this -> item -> state -> is_handled || ! $ this -> item -> state -> is_reachable ) ) {
37
37
$ stateBall ->getAttributes ()->add ('class ' , 'handled ' );
38
38
}
39
39
Original file line number Diff line number Diff line change @@ -7635,6 +7635,16 @@ parameters:
7635
7635
count : 1
7636
7636
path : library/Icingadb/Widget/ItemTable/StateRowItem.php
7637
7637
7638
+ -
7639
+ message : " #^Cannot access property \\ $is_problem on mixed\\ .$#"
7640
+ count : 1
7641
+ path : library/Icingadb/Widget/ItemTable/StateRowItem.php
7642
+
7643
+ -
7644
+ message : " #^Cannot access property \\ $is_reachable on mixed\\ .$#"
7645
+ count : 1
7646
+ path : library/Icingadb/Widget/ItemTable/StateRowItem.php
7647
+
7638
7648
-
7639
7649
message : " #^Cannot access property \\ $last_state_change on mixed\\ .$#"
7640
7650
count : 1
You can’t perform that action at this time.
0 commit comments