diff options
| author | Adam Soltys <[email protected]> | 2026-08-15 16:04:57 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-15 16:04:57 -0700 |
| commit | 36355aa9e6e5ea65a73fc00fb7ea2b0db118962d (patch) | |
| tree | f857128ec6792635ad3fab20972c2cf9e192839f | |
| parent | eb2ef578ab9a6e34390091901afcd6a93c703dcf (diff) | |
| download | coinosv3-36355aa9e6e5ea65a73fc00fb7ea2b0db118962d.tar.gz coinosv3-36355aa9e6e5ea65a73fc00fb7ea2b0db118962d.zip | |
Log out opens the front door: the start page, with saved wallets one Unlock away
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
| -rw-r--r-- | src/app.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -4067,7 +4067,12 @@ const ctx = { hook: (name, ...args) => featureHook(name, ...args), // full sign-out (distinct from the padlock's lock-in-place): clear the // session and leave — offering a password if none protects the vault yet - logout: () => { lock({ offerPassword: true }); }, + logout: () => { + lock({ offerPassword: true }); + // Logging out means the front door, not the password prompt: land on the + // start page (Get started / sign in). Saved wallets stay one Unlock away. + if (!ui.pw) { ui.screen = 'unlock'; ui.unlockTab = 'create'; ui.onb = { step: 'welcome' }; render(); } + }, // the identity the header avatar currently wears (login > seed key > // remembered) — profile "mine"-ness must match what the user clicked shownPubkey: () => (featureHook('nostrLoginIdentity') || {}).pubkey |
