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 {
|
||||
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 {
|
||||
return {
|
||||
...settings.switchRpcSettings,
|
||||
title: settings.title,
|
||||
labelPosition: settings.labelPosition,
|
||||
sliderColor: settings.sliderColor,
|
||||
...settings.switchRpcSettings
|
||||
sliderColor: settings.sliderColor
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@ -75,9 +75,9 @@ export class SwitchControlWidgetSettingsComponent extends WidgetSettingsComponen
|
||||
|
||||
protected prepareOutputSettings(settings: any): WidgetSettings {
|
||||
return {
|
||||
...settings.switchRpcSettings,
|
||||
title: settings.title,
|
||||
showOnOffLabels: settings.showOnOffLabels,
|
||||
...settings.switchRpcSettings
|
||||
showOnOffLabels: settings.showOnOffLabels
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user