diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/locales/en.json | 1 | ||||
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 13 |
2 files changed, 12 insertions, 2 deletions
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 @@ </div> </div> - {#if memo} + {#if type === types.ecash} + <a href={`/ecash/${memo}`} class="block"> + <button + class="rounded-2xl py-5 px-6 font-bold hover:bg-neutral-700 flex bg-black text-white gap-2 items-center" + > + <img src="/images/cash.png" class="w-8" /> + <div>{$t("payments.ecashToken")}</div> + </button> + </a> + {:else if memo} <div> <span class="text-lg text-secondary">{$t("payments.memo")}</span> <div>{memo}</div> </div> {/if} - {#if type === "lightning"} + {#if type === types.lightning} <div> <span class="text-lg text-secondary">{$t("payments.preimage")}</span> <div>{ref}</div> |
