From 4803e7fcd57de5e6c2c63a04c7375dbc78fa72fa Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 21 Apr 2020 15:18:44 +0200 Subject: [PATCH] Fix lavatar not generating any image --- api/js/etemplate/et2_widget_image.js | 5 +++++ api/js/etemplate/et2_widget_image.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_widget_image.js b/api/js/etemplate/et2_widget_image.js index 247ae52031..102aa2a8e5 100644 --- a/api/js/etemplate/et2_widget_image.js +++ b/api/js/etemplate/et2_widget_image.js @@ -542,6 +542,11 @@ var et2_avatar = /** @class */ (function (_super) { '#b2b7bb', '#72acae', '#9c8ab4', '#5a8770', '#eeb424', '#407887' ]; + /** + * Text color + */ + et2_avatar.LAVATAR_TEXT_COLOR = '#ffffff'; + et2_avatar.LAVATAR_SIZE = 128; return et2_avatar; }(et2_image)); et2_core_widget_1.et2_register_widget(et2_avatar, ["avatar"]); diff --git a/api/js/etemplate/et2_widget_image.ts b/api/js/etemplate/et2_widget_image.ts index 38fc83a81b..080bd8fea5 100644 --- a/api/js/etemplate/et2_widget_image.ts +++ b/api/js/etemplate/et2_widget_image.ts @@ -375,9 +375,9 @@ class et2_avatar extends et2_image /** * Text color */ - static LAVATAR_TEXT_COLOR: '#ffffff'; + static LAVATAR_TEXT_COLOR: string = '#ffffff'; - static LAVATAR_SIZE: 128; + static LAVATAR_SIZE: number = 128; /** * Generate letter avatar with given data