Fix settings bar values not working with default values
This commit is contained in:
parent
e3f4e5525e
commit
c6cb267b30
|
@ -254,6 +254,7 @@
|
||||||
prop={setting.key}
|
prop={setting.key}
|
||||||
options={setting.options}
|
options={setting.options}
|
||||||
label={setting.label}
|
label={setting.label}
|
||||||
|
{component}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if setting.type === "boolean"}
|
{:else if setting.type === "boolean"}
|
||||||
|
@ -262,9 +263,10 @@
|
||||||
icon={setting.barIcon}
|
icon={setting.barIcon}
|
||||||
title={setting.barTitle || setting.label}
|
title={setting.barTitle || setting.label}
|
||||||
bool
|
bool
|
||||||
|
{component}
|
||||||
/>
|
/>
|
||||||
{:else if setting.type === "color"}
|
{:else if setting.type === "color"}
|
||||||
<SettingsColorPicker prop={setting.key} />
|
<SettingsColorPicker prop={setting.key} {component} />
|
||||||
{/if}
|
{/if}
|
||||||
{#if setting.barSeparator !== false && (settings.length != idx + 1 || !isRoot)}
|
{#if setting.barSeparator !== false && (settings.length != idx + 1 || !isRoot)}
|
||||||
<div class="divider" />
|
<div class="divider" />
|
||||||
|
|
Loading…
Reference in New Issue