Skip to content

Commit

Permalink
Set empty state message for affected object list
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Oct 24, 2024
1 parent 89d02da commit 61a919a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/Icingadb/Widget/Detail/ObjectDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,10 @@ protected function createAffectedObjects(): ?array

return [
HtmlElement::create('h2', null, Text::create(t('Affected Objects'))),
new DependencyNodeList($affectedObjects)
(new DependencyNodeList($affectedObjects))
->setEmptyStateMessage(
t('You are not authorized to view the objects affected by this object.')
)
];
}
}

0 comments on commit 61a919a

Please sign in to comment.