aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-22 08:18:39 -0700
committerAdam Soltys <[email protected]>2026-07-30 10:40:41 -0700
commitf1bd471cf5cbab6ee60a18eded0a9ed489904b13 (patch)
treef5dac313ffa5a4aff3c8460100f1638214df492a /src/components
parentf884ffabc9afab2d6051379062434fc9e7f61176 (diff)
downloadcoinos-ui-f1bd471cf5cbab6ee60a18eded0a9ed489904b13.tar.gz
coinos-ui-f1bd471cf5cbab6ee60a18eded0a9ed489904b13.zip
payments: show lightning sends as pending until settled
Lightning/bolt12 sends now start unconfirmed (server sets confirmed=false until the HTLC settles and the preimage arrives). Reflect that in the UI: the payment list and detail page show 'Pending' for an unsettled send, and the detail page shows a pending note in place of the empty preimage. Prevents the misleading 'Sent/completed with no preimage' state for held HTLCs (e.g. Ark hold invoices that stay in-flight for hours). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Payments.svelte4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Payments.svelte b/src/components/Payments.svelte
index 36633089..232ef552 100644
--- a/src/components/Payments.svelte
+++ b/src/components/Payments.svelte
@@ -111,7 +111,9 @@
? p.confirmed
? $t("payments.received")
: $t("payments.pending")
- : $t("payments.sent")}
+ : p.confirmed
+ ? $t("payments.sent")
+ : $t("payments.pending")}
{/if}
</div>
</div>