From 4fd50db1c3bb5c9a333cadd7a878665bf3ff4c8d Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 17 Mar 2022 13:06:29 -0600 Subject: [PATCH] Et2Dialog - only try to add an image to button if one is specified Avoids error in button set image() --- api/js/etemplate/Et2Dialog/Et2DialogOverlay.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Dialog/Et2DialogOverlay.ts b/api/js/etemplate/Et2Dialog/Et2DialogOverlay.ts index cd667f9fef..0216bc144b 100644 --- a/api/js/etemplate/Et2Dialog/Et2DialogOverlay.ts +++ b/api/js/etemplate/Et2Dialog/Et2DialogOverlay.ts @@ -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 {et2_template} from "../et2_widget_template"; 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` -