Add EmptyStateBar notice for empty nodes (#400)

This commit is contained in:
Sukhwinder Dhillon 2026-03-25 12:16:01 +01:00 committed by GitHub
parent 21aec09ebd
commit ec9baa8050
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,11 +9,18 @@ use Icinga\Module\Businessprocess\ImportedNode;
use Icinga\Module\Businessprocess\Renderer\TileRenderer\NodeTile;
use Icinga\Module\Businessprocess\Web\Form\CsrfToken;
use ipl\Html\Html;
use ipl\Web\Widget\EmptyStateBar;
class TileRenderer extends Renderer
{
public function assemble()
{
if (empty($this->getChildNodes())) {
$this->addHtml(new EmptyStateBar(t('This node does not contain any children')));
return;
}
$bp = $this->config;
$nodesDiv = Html::tag(
'div',