From d0e7d2d11fbeb86545ba32b1e5eca7f420123951 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 23 Oct 2024 21:49:08 -0700 Subject: link to ecash token from payment details --- src/locales/en.json | 1 + src/routes/(app)/payment/[id]/+page.svelte | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/locales/en.json b/src/locales/en.json index b55884dd..64fa3d51 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -355,6 +355,7 @@ "fundingAmount": "Funding amount", "fast": "Fast", "ecashDesc": "Ecash tokens get funded with an amount of bitcoin. They can be redeemed into a coinos account or loaded into other wallets. You can use them to give bitcoin to someone who may not have a wallet yet. Learn more at", + "ecashToken": "Ecash token", "medium": "Medium", "maxFeeDesc": "Set an upper limit on the network routing fee. If set too low the payment may fail. You can set it higher and try again. We debit the full amount while attempting the payment but credit back any unused portion.", "slow": "Slow", diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index d49a3cb2..b07bbb35 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -188,14 +188,23 @@ - {#if memo} + {#if type === types.ecash} + + + + {:else if memo}
{$t("payments.memo")}
{memo}
{/if} - {#if type === "lightning"} + {#if type === types.lightning}
{$t("payments.preimage")}
{ref}
-- cgit v1.2.3