1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 15:04:43 +00:00

fix: app config forms not updating with latest values (#696)

This commit is contained in:
Kyle Mendell
2025-06-29 08:13:06 -05:00
committed by GitHub
parent fceb6fa7b4
commit 92c57ada1a
4 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@
{/if} {/if}
</div> </div>
<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} {label}
</div> </div>

View File

@@ -45,7 +45,7 @@
emailApiKeyExpirationEnabled: z.boolean() emailApiKeyExpirationEnabled: z.boolean()
}); });
const { inputs, ...form } = createForm<typeof formSchema>(formSchema, appConfig); let { inputs, ...form } = $derived(createForm(formSchema, appConfig));
async function onSubmit() { async function onSubmit() {
const data = form.validate(); const data = form.validate();

View File

@@ -58,7 +58,7 @@
accentColor: z.string() accentColor: z.string()
}); });
const { inputs, ...form } = createForm<typeof formSchema>(formSchema, updatedAppConfig); let { inputs, ...form } = $derived(createForm(formSchema, appConfig));
async function onSubmit() { async function onSubmit() {
const data = form.validate(); const data = form.validate();

View File

@@ -68,7 +68,7 @@
ldapSoftDeleteUsers: z.boolean() ldapSoftDeleteUsers: z.boolean()
}); });
const { inputs, ...form } = createForm<typeof formSchema>(formSchema, updatedAppConfig); let { inputs, ...form } = $derived(createForm(formSchema, appConfig));
async function onSubmit() { async function onSubmit() {
const data = form.validate(); const data = form.validate();