From fbc9ab45b84827b043d6bd53bd710343d81ad5e8 Mon Sep 17 00:00:00 2001 From: Mattias Persson Date: Sat, 6 Jan 2024 06:20:58 +0100 Subject: [PATCH] Add onoff light --- src/lib/Modal/LightModal.svelte | 37 +++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/src/lib/Modal/LightModal.svelte b/src/lib/Modal/LightModal.svelte index 80a1ce06..e5910e75 100644 --- a/src/lib/Modal/LightModal.svelte +++ b/src/lib/Modal/LightModal.svelte @@ -1,12 +1,13 @@ {#if isOpen} @@ -90,6 +108,13 @@ {/if} + + {#if supportedColorModes?.includes('onoff')} +

{$lang('toggle')}

+ + + {/if} + {#if brightness !== undefined}