diff options
| author | Adam Soltys <[email protected]> | 2025-01-23 20:56:37 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-23 20:56:37 -0800 |
| commit | 6592117359b1703db8b90dc69cb58344cc8c2c85 (patch) | |
| tree | a97732a2efb4cb5ca66301fbe47e77fdf6b2f859 /src | |
| parent | 4e86cc5e1fb534bc23db4631ea2c89d37e7bc58d (diff) | |
| download | coinos-ui-6592117359b1703db8b90dc69cb58344cc8c2c85.tar.gz coinos-ui-6592117359b1703db8b90dc69cb58344cc8c2c85.zip | |
open link
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/InvoiceActions.svelte | 2 | ||||
| -rw-r--r-- | src/components/Nostr.svelte | 36 | ||||
| -rw-r--r-- | src/locales/en.json | 2 |
3 files changed, 27 insertions, 13 deletions
diff --git a/src/components/InvoiceActions.svelte b/src/components/InvoiceActions.svelte index 31af3d36..b11a66c3 100644 --- a/src/components/InvoiceActions.svelte +++ b/src/components/InvoiceActions.svelte @@ -111,7 +111,7 @@ {:else} <a href={link} class="block"> <button class="btn grow !w-auto"> - <iconify-icon noobserver icon="ph:wallet-bold" width="32" + <iconify-icon noobserver icon="ph:arrow-square-out-bold" width="32" ></iconify-icon> <div class="my-auto">{t("payments.openLink")}</div> </button> diff --git a/src/components/Nostr.svelte b/src/components/Nostr.svelte index 18d436f3..ad70cd31 100644 --- a/src/components/Nostr.svelte +++ b/src/components/Nostr.svelte @@ -143,17 +143,31 @@ <Success /> {:else} {#if connectUrl} - <a href={connectUrl}> - <img - src={`/qr/${encodeURIComponent(connectUrl)}/raw`} - class="z-10 border-4 border-white" - alt="QR" - /> - <div class="break-all"> - {connectUrl} - </div> - </a> - <button class="btn" onclick={() => copy(connectUrl)}>Copy</button> + <div class="space-y-2"> + <a href={connectUrl} class="block space-y-2"> + <img + src={`/qr/${encodeURIComponent(connectUrl)}/raw`} + class="z-10 border-4 border-white" + alt="QR" + /> + <div class="break-all"> + {connectUrl} + </div> + </a> + <a href={connectUrl} class="btn"> + <iconify-icon + noobserver + icon="ph:arrow-square-out-bold" + width="32" + ></iconify-icon> + {$t("payments.openLink")}</a + > + <button class="btn" onclick={() => copy(connectUrl)}> + <iconify-icon noobserver icon="ph:copy-bold" width="32" + ></iconify-icon> + {$t("payments.copy")}</button + > + </div> {:else} {#if $signer?.method === "nsec"} <input bind:value={nsec} placeholder="nsec..." /> diff --git a/src/locales/en.json b/src/locales/en.json index 22634184..e3d328a0 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -401,7 +401,7 @@ "shareLink": "Share", "copyLink": "Copy link", "copyText": "Copy text", - "openLink": "Open wallet", + "openLink": "Open", "setAmount": "Set amount", "moreOptions": "More options", "redeemVoucher": "Ecash", |
