aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 16:34:14 -0700
committerAdam Soltys <[email protected]>2026-09-21 16:34:14 -0700
commit9a29372359c0c998c51e5b82188202c779621fc8 (patch)
treef9f1b69a83ccfc803e410030cca209a9a0e602a1 /src
parentd0ad3a6590d783f1c88fb993ddc06d28ee0497b5 (diff)
downloadcoinosv3-9a29372359c0c998c51e5b82188202c779621fc8.tar.gz
coinosv3-9a29372359c0c998c51e5b82188202c779621fc8.zip
Spending card: the Manage link shows whenever there are coins, warning or not.
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src')
-rw-r--r--src/features/ark.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index bfd1f4b..9b3173e 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -3581,11 +3581,16 @@ export function arkFeature(ctx) {
});
}
}
- if (!lines.length) return [];
+ const manageBtn = () => h('button', { class: 'linklike small', style: 'align-self:flex-end', onClick: () => { ui.arkCoinsPage = true; render(); } }, t('arkDepthBtn'));
+ // Nothing to warn about: the coins page is still a tap away — its
+ // renewal schedule and exit cost are worth a look even when all is well.
+ if (!lines.length) {
+ const st = arkStateNow();
+ const coins = st ? (st.vtxos || []).some((v) => v.state === 'spendable') : false;
+ return coins ? [h('div', { class: 'small muted', style: 'margin:10px 0 0;text-align:center' }, manageBtn())] : [];
+ }
const err = lines.some((l) => l.err);
- const manage = lines.some((l) => l.manage)
- ? h('button', { class: 'linklike small', style: 'align-self:flex-end', onClick: () => { ui.arkCoinsPage = true; render(); } }, t('arkDepthBtn'))
- : null;
+ const manage = lines.some((l) => l.manage) ? manageBtn() : null;
// one plain advisory keeps its quiet centred line; anything more, or
// anything urgent, is a card
if (!err && lines.length === 1) {