aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-27 23:51:27 -0700
committerAdam Soltys <[email protected]>2026-09-27 23:51:27 -0700
commitd1b54a9cc8f56a2b62a3c12461261e248948ed5b (patch)
tree1a6cff4146110a182cbff14dfc00baa75eeb1dec /src/features
parentd2550b6f16d8207deb8286065fa4cf4b903e8542 (diff)
downloadcoinosv3-d1b54a9cc8f56a2b62a3c12461261e248948ed5b.tar.gz
coinosv3-d1b54a9cc8f56a2b62a3c12461261e248948ed5b.zip
Browser Back leaves the Manage and exit pages: they are history entries now, and their own Back pops one.
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D
Diffstat (limited to 'src/features')
-rw-r--r--src/features/ark.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index 3df3e85..d733e0b 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -2176,7 +2176,7 @@ export function arkFeature(ctx) {
const inRound = new Set(renewing.flatMap((a) => a.inputIds || []));
const pendingCoins = ((st && st.vtxos) || []).filter((v) => v.state === 'pending' && inRound.has(v.id));
const tip = (mgr && mgr._tipH) || 0;
- const back = () => { ui.arkCoinsPage = null; ui.arkCoinsSel = null; render(); };
+ const back = () => ctx.goBack(() => { ui.arkCoinsPage = null; ui.arkCoinsSel = null; }); // the page is a history entry now
if (!spend.length && !pendingCoins.length) { ui.arkCoinsPage = null; return null; } // nothing left to manage
if (!mgr) connectArk().then(() => render()).catch(() => {});
const totalSat = spend.reduce((n, v) => n + v.amountSat, 0);
@@ -3349,7 +3349,7 @@ export function arkFeature(ctx) {
.filter((a) => a.type === 'exit' && !['done', 'failed'].includes(a.step))
.reduce((n, a) => n + a.amountSat, 0);
const exits = arkExitStatusLines();
- const back = () => { ui.arkExitPage = null; ui.arkError = ''; render(); };
+ const back = () => ctx.goBack(() => { ui.arkExitPage = null; ui.arkError = ''; });
return h('div', { class: 'col', style: 'gap:16px' },
h('div', { class: 'card col', style: 'gap:8px' },
h('h3', { class: 'row gap6', style: 'align-items:center;margin:0' }, h('span', { html: ARK_ICON(18) }), t('arkExitPageTitle')),