TreeRenderer: Show the correct icon for monitored nodes at the root level

This commit is contained in:
Johannes Meyer 2019-02-22 09:14:54 +01:00
parent c73cd65f6f
commit 728d4cb2ae

View file

@ -121,7 +121,7 @@ class TreeRenderer extends Renderer
public function getNodeIcons(Node $node, array $path = null)
{
$icons = [];
if (empty($path)) {
if (empty($path) && $node instanceof BpNode) {
$icons[] = Html::tag('i', ['class' => 'icon icon-sitemap']);
} else {
$icons[] = $node->getIcon();