mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 02:18:31 +02:00
Icon improvements:
- If Et2ButtonIcon image does not resolve to a egw image, treat it as a Shoelace icon name - Add egw images as an icon library for Shoelace eg: <sl-icon library="egw" name="5_day_view"/>
This commit is contained in:
@ -28,11 +28,15 @@ export class Et2ButtonIcon extends ButtonMixin(Et2InputWidget(SlIconButton))
|
||||
{
|
||||
this.src = this.egw().image(new_image);
|
||||
}
|
||||
if(new_image && !this.src)
|
||||
{
|
||||
this.name = new_image;
|
||||
}
|
||||
}
|
||||
|
||||
get image()
|
||||
{
|
||||
return this.src;
|
||||
return this.src || this.name;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user