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 374cf92 commit c42b4c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Icingadb/Widget/Detail/ObjectDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,9 @@ 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 affected dependent objects because of this object's state.")
)
];
}
}

0 comments on commit c42b4c9

Please sign in to comment.