Some bug fixes
This commit is contained in:
@@ -328,7 +328,11 @@
|
|||||||
<select
|
<select
|
||||||
class="select select-sm w-36"
|
class="select select-sm w-36"
|
||||||
value={currentEditor.configId ?? ""}
|
value={currentEditor.configId ?? ""}
|
||||||
onchange={(e) => loadConfig(e.currentTarget.value)}
|
onchange={async (e) => {
|
||||||
|
const select = e.currentTarget;
|
||||||
|
await loadConfig(select.value);
|
||||||
|
select.value = editor?.configId ?? "";
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{#each configs as config}
|
{#each configs as config}
|
||||||
<option value={config.id}>
|
<option value={config.id}>
|
||||||
@@ -372,7 +376,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="btn btn-primary btn-sm"
|
class="btn btn-primary btn-sm"
|
||||||
hidden={isLive}
|
hidden={isLive && !isDirty}
|
||||||
disabled={saving || !isDirty || isLive}
|
disabled={saving || !isDirty || isLive}
|
||||||
onclick={save}
|
onclick={save}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user