diff options
| author | Adam Soltys <[email protected]> | 2025-09-15 12:05:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-15 12:05:56 -0700 |
| commit | f2eed74586ae564a6f1e1231a135592ff6a38a5c (patch) | |
| tree | afd02caf339394d5eed4a31dc5557e9f6eb93dff | |
| parent | 9205d9d996f10bafb611787b92ca57c2ee05b32d (diff) | |
| download | coinosv3-f2eed74586ae564a6f1e1231a135592ff6a38a5c.tar.gz coinosv3-f2eed74586ae564a6f1e1231a135592ff6a38a5c.zip | |
moar buttons
| -rw-r--r-- | src/routes/+page.svelte | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8cf8c90..12dd597 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -17,6 +17,10 @@ password = await navigator.clipboard.readText(); }; + const pasteSeed = async () => { + mnemonic = await navigator.clipboard.readText(); + }; + const togglePassword = () => (revealPassword = !revealPassword); const toggleSeed = () => (revealSeed = !revealSeed); @@ -238,6 +242,10 @@ <button type="button" class="btn" onclick={toggleSeed}> <iconify-icon icon={revealSeed ? 'ph:eye-bold' : 'ph:eye-slash-bold'} width={32} /> </button> + <Copy bind:text={mnemonic} /> + <button type="button" class="btn" onclick={pasteSeed}> + <iconify-icon icon="ph:clipboard-text-bold" width={32} /> + </button> <button type="button" class="btn" onclick={generate}> <iconify-icon icon="ph:dice-five-bold" width={32} /> </button> @@ -265,9 +273,11 @@ {#if address} <div class="flex items-center gap-2 break-all"> <div> - Address: {address} + {address} </div> + <Copy bind:text={address} /> + <button type="submit" class="btn ml-auto"> Check balance </button> </div> {/if} |
