mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-16 04:56:12 +00:00
fix: remove limit of 20 callback URLs
This commit is contained in:
@@ -20,8 +20,6 @@
|
|||||||
allowEmpty?: boolean;
|
allowEmpty?: boolean;
|
||||||
children?: Snippet;
|
children?: Snippet;
|
||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
const limit = 20;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div {...restProps}>
|
<div {...restProps}>
|
||||||
@@ -46,15 +44,13 @@
|
|||||||
{#if error}
|
{#if error}
|
||||||
<p class="mt-1 text-sm text-red-500">{error}</p>
|
<p class="mt-1 text-sm text-red-500">{error}</p>
|
||||||
{/if}
|
{/if}
|
||||||
{#if callbackURLs.length < limit}
|
<Button
|
||||||
<Button
|
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" />
|
{callbackURLs.length === 0 ? m.add() : m.add_another()}
|
||||||
{callbackURLs.length === 0 ? m.add() : m.add_another()}
|
</Button>
|
||||||
</Button>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user