From e2ba916875420cb498f1c52a582b442957c3ca7f Mon Sep 17 00:00:00 2001 From: mishamyrt Date: Fri, 3 May 2024 23:47:56 +0300 Subject: [PATCH] fix: disable controls on backlight off --- CHANGELOG.md | 6 ++++++ .../select-brightness/ui/LightsBrightnessSlider.svelte | 3 +++ .../lights/select-color/ui/LightsColorSelector.svelte | 3 ++- .../features/lights/select-mode/ui/LightsModeSelect.svelte | 3 +++ .../lights/select-speed/ui/LightsSpeedSlider.svelte | 3 ++- 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b25207b..9fff070 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog][], and this project adheres to [Semantic Versioning][]. +## 2.3.2 + +### Fixed + +- When the backlight is turned off, its settings are disabled. + ## [2.3.1] ### Added diff --git a/ui/src/features/lights/select-brightness/ui/LightsBrightnessSlider.svelte b/ui/src/features/lights/select-brightness/ui/LightsBrightnessSlider.svelte index 41e850e..b4f2391 100644 --- a/ui/src/features/lights/select-brightness/ui/LightsBrightnessSlider.svelte +++ b/ui/src/features/lights/select-brightness/ui/LightsBrightnessSlider.svelte @@ -18,10 +18,13 @@ brightness: e.detail as LightStateValue, }) } + + $: disabled = !$stateStore[domain].enabled