diff options
| author | Adam Soltys <[email protected]> | 2026-09-03 21:13:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-03 21:13:20 -0700 |
| commit | 084ac2624f0ad017b6fa0623784529a5ec28ae3e (patch) | |
| tree | dc946e58e3876ca52f5ca29a0ce67cbddf89ecbd /src/features | |
| parent | ee2ee566cc3be5095ca881da4f8804c15cb2bf07 (diff) | |
| download | coinosv3-084ac2624f0ad017b6fa0623784529a5ec28ae3e.tar.gz coinosv3-084ac2624f0ad017b6fa0623784529a5ec28ae3e.zip | |
Copy preimage joins the cluster too: no longer a lone full-width block, now a small button in the grouped row with copy tx id / view explorer / copy address — one consistent size for every secondary copy action
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/ark.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/features/ark.js b/src/features/ark.js index ed002f7..a421dfb 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -1175,9 +1175,9 @@ export function arkFeature(ctx) { row(t('arkFeeChain'), fmtAmount(m.chainFeeSat) + ' ' + unitLabel()), row(t('arkFeeService'), fmtAmount(m.serviceFeeSat) + ' ' + unitLabel())) : m.detail ? row(t('detailsLabel'), m.detail) : null, - // proof of payment: the preimage is what a merchant asks for + // proof of payment: the preimage is what a merchant asks for (its copy + // button rides the grouped small-button row below with the others) m.preimage ? row(t('preimageLabel'), shortTxid(m.preimage)) : null, - m.preimage ? h('button', { class: 'btn-block', onClick: () => ctx.copy(m.preimage) }, t('copyPreimage')) : null, // A send that funded a bearer gift: show its fate, and while unclaimed // the sweep-back — the copy-link lives in the grouped small-button row // below, next to the other copy actions. @@ -1214,6 +1214,7 @@ export function arkFeature(ctx) { const open = g && !g.claimed && !g.revoked; const chips = [ open ? copyBtn(`${location.origin}/g/${encodeArkGiftCode(getNetwork(), g.amountSat, hex.decode(g.secretHex))}`, t('giftCopyLinkAgain')) : null, + m.preimage ? copyBtn(m.preimage, t('copyPreimage')) : null, m.txid ? copyBtn(m.txid, t('copyTxid')) : null, m.txid ? h('a', { class: 'btn btn-sm', href: url, target: '_blank', rel: 'noopener', onClick: (e) => { e.preventDefault(); openExternal(url); } }, t('viewOnMempool')) : null, m.to ? copyBtn(m.to, t('copyAddress')) : null, |
