Merge pull request #8539 from ArtemDzhereleiko/AD/bug-fix/control-widget-title
Fixed control widgets setting change
This commit is contained in:
commit
6dab35d451
@ -72,8 +72,8 @@ export class RoundSwitchWidgetSettingsComponent extends WidgetSettingsComponent
|
|||||||
|
|
||||||
protected prepareOutputSettings(settings: any): WidgetSettings {
|
protected prepareOutputSettings(settings: any): WidgetSettings {
|
||||||
return {
|
return {
|
||||||
title: settings.title,
|
...settings.switchRpcSettings,
|
||||||
...settings.switchRpcSettings
|
title: settings.title
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,10 +78,10 @@ export class SlideToggleWidgetSettingsComponent extends WidgetSettingsComponent
|
|||||||
|
|
||||||
protected prepareOutputSettings(settings: any): WidgetSettings {
|
protected prepareOutputSettings(settings: any): WidgetSettings {
|
||||||
return {
|
return {
|
||||||
|
...settings.switchRpcSettings,
|
||||||
title: settings.title,
|
title: settings.title,
|
||||||
labelPosition: settings.labelPosition,
|
labelPosition: settings.labelPosition,
|
||||||
sliderColor: settings.sliderColor,
|
sliderColor: settings.sliderColor
|
||||||
...settings.switchRpcSettings
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -75,9 +75,9 @@ export class SwitchControlWidgetSettingsComponent extends WidgetSettingsComponen
|
|||||||
|
|
||||||
protected prepareOutputSettings(settings: any): WidgetSettings {
|
protected prepareOutputSettings(settings: any): WidgetSettings {
|
||||||
return {
|
return {
|
||||||
|
...settings.switchRpcSettings,
|
||||||
title: settings.title,
|
title: settings.title,
|
||||||
showOnOffLabels: settings.showOnOffLabels,
|
showOnOffLabels: settings.showOnOffLabels
|
||||||
...settings.switchRpcSettings
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user