Adopt toolbar widget to use buttonIcon

This commit is contained in:
Hadi Nategh 2022-08-23 12:44:50 +02:00
parent 83dc0a95f8
commit 151fc00641

View File

@ -635,7 +635,7 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
}
else
{
widget = <Et2Button>loadWebComponent("et2-button", {
widget = <Et2Button>loadWebComponent(egwIsMobile() && !this.preference[action.id]?"et2-button-icon":"et2-button", {
id: `${this.id}-${action.id}`,
image: action.iconUrl || '',
slot: "buttons",