Api: Fix missing spinner icons

This commit is contained in:
nathan 2023-05-17 10:07:53 -06:00
parent d3ff4dc2e8
commit 89483d80d3
2 changed files with 8 additions and 3 deletions

View File

@ -45,7 +45,7 @@ export class Et2ButtonIcon extends ButtonMixin(Et2InputWidget(SlIconButton))
}
if(new_image && !this.src)
{
this.name = new_image;
this.__name = new_image;
}
}
@ -58,6 +58,11 @@ export class Et2ButtonIcon extends ButtonMixin(Et2InputWidget(SlIconButton))
{
// 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);

View File

@ -87,14 +87,14 @@ export class Et2ButtonScroll extends ButtonMixin(LitElement)
<et2-button-icon
noSubmit
data-direction="1"
name="chevron-up"
image="chevron-up"
part="button"
>
</et2-button-icon>
<et2-button-icon
noSubmit
data-direction="-1"
name="chevron-down"
image="chevron-down"
part="button"
>
</et2-button-icon>