From 68ba8f5d89e07c2c587bbd147673b0eea0515b86 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 17 Jun 2026 08:11:00 -0700 Subject: fix invoices page --- src/routes/(app)/invoices/+page.svelte | 97 +++++++++++++++++++++++++--------- 1 file changed, 72 insertions(+), 25 deletions(-) diff --git a/src/routes/(app)/invoices/+page.svelte b/src/routes/(app)/invoices/+page.svelte index fbacb2df..cd1db52a 100644 --- a/src/routes/(app)/invoices/+page.svelte +++ b/src/routes/(app)/invoices/+page.svelte @@ -1,35 +1,82 @@ -
-
+
+

{$t("invoice.invoice")}

+ +
+
{$t("payments.type")}
+
{$t("invoice.invoice")}
+
+ {$t("payments.received")} / {$t("payments.amount")} +
+
+ + {#each invoices as i (i.id)}
- {#each invoices as i} -
{i.type}
- {#if show[i.id]} -
{i.hash}
- {:else} -
display(i.id)} - > - {i.hash.substr(0, 12)} - {#if !show[i.id]}...{/if} +
+ {#if i.type === types.lightning || i.type === types.bolt12} + + {:else if i.type === types.bitcoin} + + {:else if i.type === types.liquid} + Liquid + {:else if i.type === types.ecash} + Ecash + {/if} + {i.type} +
+ + + +
+ {s(i.received, locale)} + / + {s(i.amount, locale)} +
-
+ {:else} +

+ {$t("payments.empty")} +

+ {/each}
-- cgit v1.2.3