From d87e0c7f385472c8abc109c792db19c11e9837d5 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 16 Jan 2023 16:15:22 -0700 Subject: [PATCH] Fix missing default button images --- api/js/etemplate/Et2Button/ButtonMixin.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Button/ButtonMixin.ts b/api/js/etemplate/Et2Button/ButtonMixin.ts index 942390060a..922c91ca0e 100644 --- a/api/js/etemplate/Et2Button/ButtonMixin.ts +++ b/api/js/etemplate/Et2Button/ButtonMixin.ts @@ -310,9 +310,11 @@ export const ButtonMixin = (superclass : T) => class exte if(!this.image) { - for(const image in ButtonMixin.default_background_images) + // @ts-ignore + for(const image in this.constructor.default_background_images) { - if(check_id.match(ButtonMixin.default_background_images[image])) + // @ts-ignore + if(check_id.match(this.constructor.default_background_images[image])) { return image; }