mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-18 18:42:53 -05:00
Use the correct state-balls for critical/down-handled nodes in TreeRenderer::render()
Use the state-balls that are added for critical/down-handled nodes in TreeRenderer::render(), in case the nodes are critical/down and handled.
This commit is contained in:
parent
b3686906a5
commit
49bc0dd363
1 changed files with 6 additions and 2 deletions
|
|
@ -116,10 +116,14 @@ class TreeRenderer extends Renderer
|
|||
} else {
|
||||
$icons[] = $node->getIcon();
|
||||
}
|
||||
$icons[] = (new StateBall(strtolower($node->getStateName())))->addAttributes([
|
||||
$state = strtolower($node->getStateName());
|
||||
if ($node->isHandled()) {
|
||||
$state = $state . '-handled';
|
||||
}
|
||||
$icons[] = (new StateBall($state))->addAttributes([
|
||||
'title' => sprintf(
|
||||
'%s %s',
|
||||
$node->getStateName(),
|
||||
$state,
|
||||
DateFormatter::timeSince($node->getLastStateChange())
|
||||
)
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue