diff options
| author | Adam Soltys <[email protected]> | 2026-08-15 14:51:34 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-15 14:51:34 -0700 |
| commit | 3bd43675f1f0d64f31b6c9d95a2ec771a20d34b5 (patch) | |
| tree | 67c8ec77a4530b4c46f8f4d0494f4634ff325175 /src/app.js | |
| parent | 643046319fa9a393374fc2348381d9505fe143eb (diff) | |
| download | coinosv3-3bd43675f1f0d64f31b6c9d95a2ec771a20d34b5.tar.gz coinosv3-3bd43675f1f0d64f31b6c9d95a2ec771a20d34b5.zip | |
The balance card's switch becomes Manage accounts, the header chip retires, Move money is gone — and pasting an on-chain address in a Spending wallet just exits ark to it
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 33 |
1 files changed, 8 insertions, 25 deletions
@@ -1741,8 +1741,6 @@ function brandHeader(withLock) { messagesBtn(), settingsBtn(), lockBtn(), - h('button', { class: 'btn-sm', onClick: () => { ui.screen = 'accounts'; render(); } }, - acc ? viewLabel(acc, accountSel()) : t('accounts')), avatarMenu()) : null ); @@ -2796,28 +2794,12 @@ function balanceCard() { // target — so the switch is a real button that names where it goes. // Before Spending exists, its spot offers to set it up — the one // doorway into the optional spending-account flow. - kindLocked - ? (sibling - ? h('button', { - class: 'balance-switch', - onClick: () => switchToView(sibling.id, opp), - }, - h('span', { html: SWAP_ICON }), - h('span', { class: 'bsw-label' }, viewLabel(sibling, opp))) - : null) - : hasSpending - ? h('button', { - class: 'balance-switch', - onClick: () => setAccountSel(isSpending ? 'savings' : 'spending', isSpending ? 'left' : 'right'), - }, - h('span', { html: SWAP_ICON }), - h('span', { class: 'bsw-label' }, isSpending ? t('savingLabel') : t('spendingLabel'))) - : featureHook('arkReady') && !wallet.watchOnly - ? h('button', { - class: 'balance-switch', - onClick: () => { ui.onbError = ''; ui.onb = { step: 'spend' }; render(); }, - }, h('span', { class: 'bsw-label' }, t('spendSetup'))) - : null), + h('button', { + class: 'balance-switch', + onClick: () => { ui.screen = 'accounts'; render(); }, + }, + h('span', { html: SWAP_ICON }), + h('span', { class: 'bsw-label' }, t('manageAccounts')))), h('div', { class: 'amt', style: firstLoad ? 'opacity:.3' : '' }, firstLoad ? h('span', { class: 'spinner sm', style: 'margin-right:8px' }) : null, animatedAmount('bal:' + sel, isSpending ? spending : saving), ' ', unitTag('unit')), @@ -2841,7 +2823,8 @@ function balanceCard() { // pointless (and confusing) while there's only one. ...(hasSpending ? featureAll('balanceActions') : []).map((a2) => h('button', { class: 'btn-sm', style: 'margin-top:10px', onClick: a2.onClick }, a2.label)), - kindLocked && isSpending && !hasSpending && featureHook('arkReady') && !wallet.watchOnly + (ui.account === 'spending' || (kindLocked && acc0.kind === 'spending')) && !hasSpending + && featureHook('arkReady') && !wallet.watchOnly ? h('button', { class: 'btn-sm', style: 'margin-top:10px', onClick: () => { ui.onbError = ''; ui.onb = { step: 'spend' }; render(); } }, t('spendSetup')) : null, // A feature can unfold UI right on the card (ark's inline move panel). |
