mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-14 07:12:19 +00:00
fix: increase callback url count
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
children?: Snippet;
|
children?: Snippet;
|
||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
const limit = 5;
|
const limit = 20;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div {...restProps}>
|
<div {...restProps}>
|
||||||
@@ -25,15 +25,15 @@
|
|||||||
{#each callbackURLs as _, i}
|
{#each callbackURLs as _, i}
|
||||||
<div class="flex gap-x-2">
|
<div class="flex gap-x-2">
|
||||||
<Input data-testid={`callback-url-${i + 1}`} bind:value={callbackURLs[i]} />
|
<Input data-testid={`callback-url-${i + 1}`} bind:value={callbackURLs[i]} />
|
||||||
{#if callbackURLs.length > 1}
|
{#if callbackURLs.length > 1}
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
on:click={() => callbackURLs = callbackURLs.filter((_, index) => index !== i)}
|
on:click={() => (callbackURLs = callbackURLs.filter((_, index) => index !== i))}
|
||||||
>
|
>
|
||||||
<LucideMinus class="h-4 w-4" />
|
<LucideMinus class="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
class="mt-2"
|
class="mt-2"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
on:click={() => callbackURLs = [...callbackURLs, '']}
|
on:click={() => (callbackURLs = [...callbackURLs, ''])}
|
||||||
>
|
>
|
||||||
<LucidePlus class="mr-1 h-4 w-4" />
|
<LucidePlus class="mr-1 h-4 w-4" />
|
||||||
Add another
|
Add another
|
||||||
|
|||||||
Reference in New Issue
Block a user