Browse Source
Merge pull request #8539 from ArtemDzhereleiko/AD/bug-fix/control-widget-title
Fixed control widgets setting change
pull/8611/head
Igor Kulikov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
6 additions and
6 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/settings/control/round-switch-widget-settings.component.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/settings/control/slide-toggle-widget-settings.component.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/settings/control/switch-control-widget-settings.component.ts
|
|
|
@ -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 |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|