mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-10 15:34:27 +02:00
navigation/dashboard: Provide fallback for icingadb items without icon
fixes #5177
This commit is contained in:
parent
8ec42b05f8
commit
474f918458
@ -12,7 +12,7 @@ use ipl\Web\Widget\Icon;
|
|||||||
<div class="link-icon">
|
<div class="link-icon">
|
||||||
<?php
|
<?php
|
||||||
if (substr($item->getUrl()->getPath(), 0, 9) === 'icingadb/') {
|
if (substr($item->getUrl()->getPath(), 0, 9) === 'icingadb/') {
|
||||||
echo new Icon($item->getIcon(), [ 'aria-hidden' => 1]);
|
echo new Icon($item->getIcon() ?: 'share', [ 'aria-hidden' => 1]);
|
||||||
} else {
|
} else {
|
||||||
echo $this->icon($item->getIcon() ?: 'forward', null, array('aria-hidden' => true));
|
echo $this->icon($item->getIcon() ?: 'forward', null, array('aria-hidden' => true));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user