Merge pull request #8539 from ArtemDzhereleiko/AD/bug-fix/control-widget-title

Fixed control widgets setting change
This commit is contained in:
Igor Kulikov 2023-05-22 17:48:56 +03:00 committed by GitHub
commit 6dab35d451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -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
};
}
}

View File

@ -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
};
}
}

View File

@ -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
};
}
}