mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
Add EmptyStateBar notice for empty nodes (#400)
This commit is contained in:
parent
21aec09ebd
commit
ec9baa8050
1 changed files with 7 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue