mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Get category icons working
This commit is contained in:
parent
bebd121b60
commit
a60299e114
@ -398,14 +398,14 @@ export class Et2TreeDropdown extends Et2WidgetWithSelectMixin(LitElement)
|
||||
*/
|
||||
protected iconTemplate(option)
|
||||
{
|
||||
if(!option.icon)
|
||||
if(!option.icon && !option.im0)
|
||||
{
|
||||
return html``;
|
||||
}
|
||||
|
||||
return html`
|
||||
<et2-image slot="prefix" part="icon" style="width: var(--icon-width)"
|
||||
src="${option.icon}"></et2-image>`
|
||||
src="${option.icon ?? option.im0}"></et2-image>`
|
||||
}
|
||||
|
||||
inputTemplate()
|
||||
|
@ -539,6 +539,7 @@ class Tree extends Etemplate\Widget
|
||||
*/
|
||||
'value' => $cat['id'],
|
||||
'label' => $s,
|
||||
'icon' => $cat['data']['icon'] ?: '',
|
||||
'title' => $cat['description']
|
||||
);
|
||||
$cat_id_list[] = $cat['id'];
|
||||
|
Loading…
Reference in New Issue
Block a user