hide light sensor option when no light sensor
All checks were successful
/ build (push) Successful in 3m39s
/ check-changes (push) Successful in 6s

This commit is contained in:
Djuri 2025-01-16 00:29:45 +01:00
parent 993bb45d0d
commit 68207a7d95
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1

View file

@ -190,12 +190,14 @@
size={$uiSettings.inputSize} size={$uiSettings.inputSize}
/> />
<SettingsSwitch {#if $settings.hasLightLevel}
id="flOffWhenDark" <SettingsSwitch
bind:checked={$settings.flOffWhenDark} id="flOffWhenDark"
label={$_('section.settings.flOffWhenDark')} bind:checked={$settings.flOffWhenDark}
size={$uiSettings.inputSize} label={$_('section.settings.flOffWhenDark')}
/> size={$uiSettings.inputSize}
/>
{/if}
{/if} {/if}
</Row> </Row>
</ToggleHeader> </ToggleHeader>