GridRenderer::assembleVisual(): Fix visual link

- Don't show all objct if the group is emplty
This commit is contained in:
Sukhwinder Dhillon 2025-03-28 13:16:29 +01:00 committed by Johannes Meyer
parent 2b060a4f2a
commit 20d74a685f
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ class HostgroupGridRenderer implements ItemRenderer
} else {
$link = new Link(
new StateBadge(0, 'none'),
$url,
Links::hostgroup($item),
[
'title' => sprintf(
$this->translate('There are no hosts in host group "%s"'),

View file

@ -205,7 +205,7 @@ class ServicegroupGridRenderer implements ItemRenderer
} else {
$link = new Link(
new StateBadge(0, 'none'),
$url,
Links::servicegroup($item),
[
'title' => sprintf(
$this->translate('There are no services in service group "%s"'),