aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/ark.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-30 22:32:45 -0700
committerAdam Soltys <[email protected]>2026-08-30 22:32:45 -0700
commitbfe6ee7f93d294e430718a91c96aef815ee6935a (patch)
tree2fc30cfc1de0eeb03ddce5bf618cf1df39819c5e /src/features/ark.js
parent08138f7c4eddf2a94a49350e31c7cffd97fe3120 (diff)
downloadcoinosv3-bfe6ee7f93d294e430718a91c96aef815ee6935a.tar.gz
coinosv3-bfe6ee7f93d294e430718a91c96aef815ee6935a.zip
The phone's Back button closes a payment's details instead of teleporting to the last tab: the ark move/exit and gift detail views join NAV_FIELDS (an on-chain txDetail always had an entry; the ark rows — most Spending payments — minted none, so Back skipped the history list entirely), and their in-app Back buttons pop that entry rather than pushing another
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
Diffstat (limited to 'src/features/ark.js')
-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 bacf49e..ace0ea7 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -1006,7 +1006,7 @@ export function arkFeature(ctx) {
ui.arkExitDetail = null;
render();
} }, t('arkExitCancel')) : null,
- h('button', { class: 'btn-ghost btn-block', onClick: () => { ui.arkExitDetail = null; render(); } }, t('back')));
+ h('button', { class: 'btn-ghost btn-block', onClick: () => ctx.goBack(() => { ui.arkExitDetail = null; }) }, t('back')));
}
function arkMoveDetailView(m) {
@@ -1081,7 +1081,7 @@ export function arkFeature(ctx) {
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,
- h('button', { class: 'btn-ghost btn-block', onClick: () => { ui.arkMoveDetail = null; render(); } }, t('back'))
+ h('button', { class: 'btn-ghost btn-block', onClick: () => ctx.goBack(() => { ui.arkMoveDetail = null; }) }, t('back'))
);
}