Skip to content

Commit

Permalink
Set message to show if the root problem list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Oct 24, 2024
1 parent 13686a7 commit eefd449
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 @@ -651,7 +651,9 @@ protected function createRootProblems(): ?array

return [
HtmlElement::create('h2', null, Text::create(t('Root Problems'))),
new DependencyNodeList($rootProblems)
(new DependencyNodeList($rootProblems))->setEmptyStateMessage(
t('You are not authorized to view the root problematic objects causing this object to be unreachable.')
)
];
}
}

0 comments on commit eefd449

Please sign in to comment.