Merge pull request #5910 from ArtemDzhereleiko/bug-fix/widget-advanced-settings/show-title-icon
[3.3.3] UI: Added additional condition to define showTitleIcon
This commit is contained in:
commit
4c972ec59b
@ -396,14 +396,15 @@ export class WidgetConfigComponent extends PageComponent implements OnInit, Cont
|
|||||||
const layout = this.modelValue.layout;
|
const layout = this.modelValue.layout;
|
||||||
if (config) {
|
if (config) {
|
||||||
this.selectedTab = 0;
|
this.selectedTab = 0;
|
||||||
|
const displayWidgetTitle = isDefined(config.showTitle) ? config.showTitle : false;
|
||||||
this.widgetSettings.patchValue({
|
this.widgetSettings.patchValue({
|
||||||
title: config.title,
|
title: config.title,
|
||||||
showTitleIcon: isDefined(config.showTitleIcon) ? config.showTitleIcon : false,
|
showTitleIcon: isDefined(config.showTitleIcon) && displayWidgetTitle ? config.showTitleIcon : false,
|
||||||
titleIcon: isDefined(config.titleIcon) ? config.titleIcon : '',
|
titleIcon: isDefined(config.titleIcon) ? config.titleIcon : '',
|
||||||
iconColor: isDefined(config.iconColor) ? config.iconColor : 'rgba(0, 0, 0, 0.87)',
|
iconColor: isDefined(config.iconColor) ? config.iconColor : 'rgba(0, 0, 0, 0.87)',
|
||||||
iconSize: isDefined(config.iconSize) ? config.iconSize : '24px',
|
iconSize: isDefined(config.iconSize) ? config.iconSize : '24px',
|
||||||
titleTooltip: isDefined(config.titleTooltip) ? config.titleTooltip : '',
|
titleTooltip: isDefined(config.titleTooltip) ? config.titleTooltip : '',
|
||||||
showTitle: isDefined(config.showTitle) ? config.showTitle : false,
|
showTitle: displayWidgetTitle,
|
||||||
dropShadow: isDefined(config.dropShadow) ? config.dropShadow : true,
|
dropShadow: isDefined(config.dropShadow) ? config.dropShadow : true,
|
||||||
enableFullscreen: isDefined(config.enableFullscreen) ? config.enableFullscreen : true,
|
enableFullscreen: isDefined(config.enableFullscreen) ? config.enableFullscreen : true,
|
||||||
backgroundColor: config.backgroundColor,
|
backgroundColor: config.backgroundColor,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user