mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
SingleValueSearchControl: Add failure message for empty results
This commit is contained in:
parent
a6507daaaf
commit
0d35a1774d
@ -164,6 +164,12 @@ class SingleValueSearchControl extends Form
|
||||
$name
|
||||
]));
|
||||
continue;
|
||||
} elseif (empty($entries)) {
|
||||
$ul->add(new HtmlElement('li', ['class' => 'failure-message'], [
|
||||
new HtmlElement('em', null, t('No results:')),
|
||||
$name
|
||||
]));
|
||||
continue;
|
||||
} else {
|
||||
$ul->add(new HtmlElement('li', ['class' => Suggestions::SUGGESTION_TITLE_CLASS], $name));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user