hide light sensor option when no light sensor
This commit is contained in:
parent
993bb45d0d
commit
68207a7d95
1 changed files with 8 additions and 6 deletions
|
@ -190,6 +190,7 @@
|
||||||
size={$uiSettings.inputSize}
|
size={$uiSettings.inputSize}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{#if $settings.hasLightLevel}
|
||||||
<SettingsSwitch
|
<SettingsSwitch
|
||||||
id="flOffWhenDark"
|
id="flOffWhenDark"
|
||||||
bind:checked={$settings.flOffWhenDark}
|
bind:checked={$settings.flOffWhenDark}
|
||||||
|
@ -197,6 +198,7 @@
|
||||||
size={$uiSettings.inputSize}
|
size={$uiSettings.inputSize}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
</Row>
|
</Row>
|
||||||
</ToggleHeader>
|
</ToggleHeader>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
Loading…
Add table
Reference in a new issue