aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-03 22:45:50 -0800
committerAdam Soltys <[email protected]>2026-03-03 22:45:50 -0800
commit1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1 (patch)
tree29399a82df3f981a24ef6cc84562c8ee006738d7 /src/routes/(app)/payment
parente66a08d18f2bef2eccfe84042a2674141a73d1c2 (diff)
downloadcoinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.tar.gz
coinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.zip
api proxy
Diffstat (limited to 'src/routes/(app)/payment')
-rw-r--r--src/routes/(app)/payment/[id]/+page.svelte10
-rw-r--r--src/routes/(app)/payment/[id]/print/+server.ts7
2 files changed, 9 insertions, 8 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte
index 78ae22c3..15f42a75 100644
--- a/src/routes/(app)/payment/[id]/+page.svelte
+++ b/src/routes/(app)/payment/[id]/+page.svelte
@@ -146,7 +146,11 @@
<div class="flex items-center gap-2 min-w-0">
{#if !expanded.has(label)}
<span class="text-right break-all">
- {value.slice(0, 8)}...{value.slice(-8)}
+ {#if value.length > 20}
+ {value.slice(0, 8)}...{value.slice(-8)}
+ {:else}
+ {value}
+ {/if}
</span>
{/if}
<button
@@ -344,6 +348,10 @@
{@render copyable("Txid", txid, `${expl}/tx/${txid}${vout ? "#vout=" + vout : ""}`)}
{/if}
+ {#if (type === "bitcoin" || type === "liquid") && amount > 0 && hash}
+ {@render copyable("Address", hash, `${expl}/address/${hash}`)}
+ {/if}
+
{#if path}
{@render copyable("Path", path)}
{/if}
diff --git a/src/routes/(app)/payment/[id]/print/+server.ts b/src/routes/(app)/payment/[id]/print/+server.ts
deleted file mode 100644
index 19f8941e..00000000
--- a/src/routes/(app)/payment/[id]/print/+server.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { auth, post } from "$lib/utils";
-import { json } from "@sveltejs/kit";
-
-export async function POST({ cookies, request }) {
- const body = await request.json();
- return json(post("/print", body, auth(cookies)));
-}