mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Et2Dialog - only try to add an image to button if one is specified
Avoids error in button set image()
This commit is contained in:
parent
56571c6fc7
commit
4fd50db1c3
@ -1,4 +1,4 @@
|
|||||||
import {css, html, LitElement, repeat, SlotMixin} from '@lion/core';
|
import {css, html, ifDefined, LitElement, repeat, SlotMixin} from '@lion/core';
|
||||||
import {DialogButton, Et2Dialog} from "./Et2Dialog";
|
import {DialogButton, Et2Dialog} from "./Et2Dialog";
|
||||||
import {et2_template} from "../et2_widget_template";
|
import {et2_template} from "../et2_widget_template";
|
||||||
import {Et2DialogContent} from "./Et2DialogContent";
|
import {Et2DialogContent} from "./Et2DialogContent";
|
||||||
@ -217,7 +217,8 @@ export class Et2DialogOverlay extends SlotMixin(LitElement)
|
|||||||
return html`${repeat(this.buttons, (button : DialogButton) => button.id, (button, index) =>
|
return html`${repeat(this.buttons, (button : DialogButton) => button.id, (button, index) =>
|
||||||
{
|
{
|
||||||
return html`
|
return html`
|
||||||
<et2-button ._parent=${this} id=${button.id} button_id=${button.button_id} .image=${button.image}
|
<et2-button ._parent=${this} id=${button.id} button_id=${button.button_id}
|
||||||
|
.image=${ifDefined(button.image)}
|
||||||
label=${button.text}
|
label=${button.text}
|
||||||
?align=${button.align}>
|
?align=${button.align}>
|
||||||
</et2-button>
|
</et2-button>
|
||||||
|
Loading…
Reference in New Issue
Block a user