mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-02 08:29:26 -05:00
TileRenderer: show unbound nodes only at root level
This commit is contained in:
parent
8770ff05ce
commit
549ec814ab
1 changed files with 6 additions and 4 deletions
|
|
@ -36,10 +36,12 @@ class TileRenderer extends Renderer
|
|||
$this->add(new NodeTile($this, $name, $node, $path));
|
||||
}
|
||||
|
||||
$unbound = $this->createUnboundParent($bp);
|
||||
if ($unbound->hasChildren()) {
|
||||
$name = $unbound->getAlias();
|
||||
$this->add($this->add(new NodeTile($this, $name, $unbound)));
|
||||
if ($this->wantsRootNodes()) {
|
||||
$unbound = $this->createUnboundParent($bp);
|
||||
if ($unbound->hasChildren()) {
|
||||
$name = $unbound->getAlias();
|
||||
$this->add(new NodeTile($this, $name, $unbound));
|
||||
}
|
||||
}
|
||||
|
||||
if (! $this->isLocked()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue