mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-24 08:39:34 -05:00
This fixes the issue that the name of a missing monitoring node is not displayed in forms and in Tree/Tile view.
19 lines
452 B
PHP
19 lines
452 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess;
|
|
|
|
use ipl\Html\Html;
|
|
|
|
abstract class MonitoredNode extends Node
|
|
{
|
|
abstract public function getUrl();
|
|
|
|
public function getLink()
|
|
{
|
|
if ($this->isMissing()) {
|
|
return Html::tag('a', ['href' => '#'], $this->getAlias() ?? $this->getName());
|
|
} else {
|
|
return Html::tag('a', ['href' => $this->getUrl()], $this->getAlias() ?? $this->getName());
|
|
}
|
|
}
|
|
}
|