This commit is contained in:
greeneclipse committed 2026-10-15 21:37:00 +02:00
1 parent cfd31f398c
commit 26e7453ad9
2 files changed
+3 -3

No files matched your search

@@ -21,7 +21,7 @@
<select class="w-full rounded-md border bg-background p-2 text-sm" bind:value={authMode}><option value="bearer">Bearer token (optional)</option><option value="header">Custom API key header</option></select>
{#if authMode==="header"}<input class="w-full rounded-md border bg-background p-2 text-sm" bind:value={headerName} placeholder="X-API-Key" />{/if}
<input class="w-full rounded-md border bg-background p-2 text-sm" type="password" autocomplete="off" bind:value={token} placeholder="API key / token (optional)" />
<textarea class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={extra} placeholder='Additional headers JSON, e.g. {"X-Tenant":"my-store"}'></textarea>
<textarea class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={extra} placeholder={'Additional headers JSON, e.g. {"X-Tenant":"my-store"}'}></textarea>
{#if error}<p class="text-sm text-destructive">{error}</p>{/if}
<button class="rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50" disabled={busy}>{busy?"Importing...":"Import JSON"}</button>
</form>