nit email trigger

This commit is contained in:
Ruben Fiszel
2025-09-05 11:50:10 +00:00
parent f02ae3968e
commit eed17f5706

View File

@@ -12,6 +12,7 @@
import ClipboardPanel from './ClipboardPanel.svelte'
import Alert from '$lib/components/common/alert/Alert.svelte'
import { base32 } from 'rfc4648'
import { emptyString } from '$lib/utils'
let requestType: 'hash' | 'path' = $state('path')
@@ -108,7 +109,16 @@
{#key requestType}
{#key token}
<Label label="Email address">
<ClipboardPanel content={email} />
{#if !emptyString(token)}
<ClipboardPanel content={email} />
{:else}
<input
type="text"
disabled
value="Create a token first"
class="!text-xs !text-red-400"
/>
{/if}
</Label>
{/key}
{/key}