mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-01-09 19:58:05 -05:00
fix: app config forms not updating with latest values (#696)
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<div
|
||||
class="text-muted-foreground group-hover/item:text-foreground bg-background absolute top-12 left-1/2 z-20 max-w-0 -translate-x-1/2 transform overflow-hidden rounded-md border px-2 py-1 text-xs whitespace-nowrap opacity-0 shadow-sm transition-all duration-300 ease-out group-hover/item:max-w-[100px] group-hover/item:opacity-100"
|
||||
class="text-muted-foreground group-hover/item:text-foreground bg-background absolute left-1/2 top-12 z-20 max-w-0 -translate-x-1/2 transform overflow-hidden whitespace-nowrap rounded-md border px-2 py-1 text-xs opacity-0 shadow-sm transition-all duration-300 ease-out group-hover/item:max-w-[100px] group-hover/item:opacity-100"
|
||||
>
|
||||
{label}
|
||||
</div>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
emailApiKeyExpirationEnabled: z.boolean()
|
||||
});
|
||||
|
||||
const { inputs, ...form } = createForm<typeof formSchema>(formSchema, appConfig);
|
||||
let { inputs, ...form } = $derived(createForm(formSchema, appConfig));
|
||||
|
||||
async function onSubmit() {
|
||||
const data = form.validate();
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
accentColor: z.string()
|
||||
});
|
||||
|
||||
const { inputs, ...form } = createForm<typeof formSchema>(formSchema, updatedAppConfig);
|
||||
let { inputs, ...form } = $derived(createForm(formSchema, appConfig));
|
||||
|
||||
async function onSubmit() {
|
||||
const data = form.validate();
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
ldapSoftDeleteUsers: z.boolean()
|
||||
});
|
||||
|
||||
const { inputs, ...form } = createForm<typeof formSchema>(formSchema, updatedAppConfig);
|
||||
let { inputs, ...form } = $derived(createForm(formSchema, appConfig));
|
||||
|
||||
async function onSubmit() {
|
||||
const data = form.validate();
|
||||
|
||||
Reference in New Issue
Block a user