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