1
0
Fork 0
mirror of https://git.btclock.dev/btclock/webui.git synced 2025-01-17 15:42:22 +01:00

hide light sensor option when no light sensor

This commit is contained in:
Djuri Baars 2025-01-16 00:29:45 +01:00
parent 993bb45d0d
commit 68207a7d95
No known key found for this signature in database
GPG key ID: 61B9B2DDE5AA3AC1

View file

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