aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-02 21:08:46 -0700
committerAdam Soltys <[email protected]>2026-08-02 21:08:46 -0700
commit69575e81756d86e5e6a3877976e31e4fa46a6ca4 (patch)
treec350d537625576d1c9479c907f16efc0b81a0e14 /src
parent5075e9f4c585138cddfe7e7962170dbd2e73874a (diff)
downloadcoinosv3-69575e81756d86e5e6a3877976e31e4fa46a6ca4.tar.gz
coinosv3-69575e81756d86e5e6a3877976e31e4fa46a6ca4.zip
Settings takes the whole page — no balance card, no tab strip
The hub gains a back button (the logo and avatar menu also lead out); an offline wallet's forced settings tab keeps its banner. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src')
-rw-r--r--src/app.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 4ae1912..232ad8e 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1466,7 +1466,8 @@ function settingsTab() {
nav('payments', t('settingsPayments')),
nav('network', t('settingsNetwork')),
nav('nostr', t('nostrSettings')),
- nav('advanced', t('advancedSettings'))
+ nav('advanced', t('advancedSettings')),
+ h('button', { class: 'btn-ghost btn-block', style: 'margin-top:6px', onClick: () => { ui.tab = wallet.offline ? 'settings' : 'receive'; render(); } }, t('back'))
);
}
@@ -1947,6 +1948,17 @@ function walletScreen() {
if (ob) {
return h('div', { class: 'col', style: 'gap:0' }, brandHeader(false), h('div', { class: 'mt16' }, ob));
}
+ // Settings is a full page of its own — no balance, no tab strip; the hub's
+ // back button (or the logo / avatar menu) leads out.
+ if (ui.tab === 'settings') {
+ return h(
+ 'div',
+ { class: 'col', style: 'gap:0' },
+ brandHeader(true),
+ ui.offlineFallback && wallet.offline ? offlineBanner() : null,
+ h('div', { class: 'mt16' }, tabContent())
+ );
+ }
return h(
'div',
{ class: 'col', style: 'gap:0' },