mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
Fix Et2ButtonIcon buttons using sl-icons did not show the icon
This commit is contained in:
parent
559099ee05
commit
eef8eb8432
@ -45,7 +45,8 @@ export class Et2ButtonIcon extends ButtonMixin(Et2InputWidget(SlIconButton))
|
||||
}
|
||||
if(new_image && !this.src)
|
||||
{
|
||||
this.__name = new_image;
|
||||
// For some reason setting it directly does not show the image
|
||||
this.updateComplete.then(() => this.name = new_image);
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,16 +54,6 @@ export class Et2ButtonIcon extends ButtonMixin(Et2InputWidget(SlIconButton))
|
||||
{
|
||||
return this.src || this.name;
|
||||
}
|
||||
|
||||
set name(name)
|
||||
{
|
||||
// No - use image to avoid conflicts between our icons & SlIconButton's image/url loading
|
||||
}
|
||||
|
||||
get name()
|
||||
{
|
||||
return super.name;
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define("et2-button-icon", Et2ButtonIcon);
|
Loading…
Reference in New Issue
Block a user