mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-16 09:13:20 +03:00
feat: add audit log with email notification (#26)
This commit is contained in:
@@ -9,12 +9,16 @@
|
||||
input = $bindable(),
|
||||
label,
|
||||
description,
|
||||
disabled = false,
|
||||
type = 'text',
|
||||
children,
|
||||
...restProps
|
||||
}: HTMLAttributes<HTMLDivElement> & {
|
||||
input?: FormInput<string | boolean | number>;
|
||||
label: string;
|
||||
description?: string;
|
||||
disabled?: boolean;
|
||||
type?: 'text' | 'password' | 'email' | 'number' | 'checkbox';
|
||||
children?: Snippet;
|
||||
} = $props();
|
||||
|
||||
@@ -30,7 +34,7 @@
|
||||
{#if children}
|
||||
{@render children()}
|
||||
{:else if input}
|
||||
<Input {id} bind:value={input.value} />
|
||||
<Input {id} {type} bind:value={input.value} {disabled} />
|
||||
{/if}
|
||||
{#if input?.error}
|
||||
<p class="mt-1 text-sm text-red-500">{input.error}</p>
|
||||
|
||||
Reference in New Issue
Block a user