From f7e4c0a0a7f28e2a3c8ae05053395948e6448b0c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 7 May 2025 12:53:53 -0700 Subject: improve invoices page --- src/routes/(app)/invoices/+page.svelte | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/routes/(app)/invoices/+page.svelte b/src/routes/(app)/invoices/+page.svelte index 8de240c2..fbacb2df 100644 --- a/src/routes/(app)/invoices/+page.svelte +++ b/src/routes/(app)/invoices/+page.svelte @@ -7,17 +7,28 @@
-
+
{#each invoices as i} -
{i.type}
+
{i.type}
{#if show[i.id]} -
{i.hash}
+
{i.hash}
{:else} -
display(i.id)}> +
display(i.id)} + > {i.hash.substr(0, 12)} + {#if !show[i.id]}...{/if}
{/if} -
{i.received} / {i.amount}
+
+ {i.received} / {i.amount} +
+
+ {i.memo?.startsWith("[") ? JSON.parse(i.memo)[0][1] : i.memo} +
{/each}
-- cgit v1.2.3