mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +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)
|
protected iconTemplate(option)
|
||||||
{
|
{
|
||||||
if(!option.icon)
|
if(!option.icon && !option.im0)
|
||||||
{
|
{
|
||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<et2-image slot="prefix" part="icon" style="width: var(--icon-width)"
|
<et2-image slot="prefix" part="icon" style="width: var(--icon-width)"
|
||||||
src="${option.icon}"></et2-image>`
|
src="${option.icon ?? option.im0}"></et2-image>`
|
||||||
}
|
}
|
||||||
|
|
||||||
inputTemplate()
|
inputTemplate()
|
||||||
|
@ -539,6 +539,7 @@ class Tree extends Etemplate\Widget
|
|||||||
*/
|
*/
|
||||||
'value' => $cat['id'],
|
'value' => $cat['id'],
|
||||||
'label' => $s,
|
'label' => $s,
|
||||||
|
'icon' => $cat['data']['icon'] ?: '',
|
||||||
'title' => $cat['description']
|
'title' => $cat['description']
|
||||||
);
|
);
|
||||||
$cat_id_list[] = $cat['id'];
|
$cat_id_list[] = $cat['id'];
|
||||||
|
Loading…
Reference in New Issue
Block a user