aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/features')
-rw-r--r--src/features/names.js3
-rw-r--r--src/features/nostrlogin.js2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/features/names.js b/src/features/names.js
index 7096955..235b834 100644
--- a/src/features/names.js
+++ b/src/features/names.js
@@ -650,6 +650,9 @@ export function namesFeature(ctx) {
namesAdoptIdentity(signer, npub) { return adoptIdentity(signer, npub); },
// the claimed payment address, for anyone prefilling a lightning address
namesAddress() { const st = load(); return st.name ? `${st.name}@${st.domain || DOMAIN()}` : null; },
+ // 'pending' while the restore/claim pass is still running — the wallet
+ // screen holds spending-setup prompts until the name question is settled.
+ namesSettled() { return checked ? 'yes' : 'pending'; },
// the onboarding wizard renders the same claim form on its username step
namesClaimForm() { return claimForm(true); },
// claim a specific name (the migration flow, after coinos.io released it)
diff --git a/src/features/nostrlogin.js b/src/features/nostrlogin.js
index de4269b..dbf2ece 100644
--- a/src/features/nostrlogin.js
+++ b/src/features/nostrlogin.js
@@ -108,6 +108,7 @@ export function nostrLoginFeature(ctx) {
// back into onboarding while ui.onb is set, so clearing it afterwards
// re-animated the welcome screen for a beat before the wallet appeared
ctx.onbNostrLogin(res.mode === 'restored');
+ ui.navAnimSkip = true; // the handover swaps instantly, no fade
await ctx.openMnemonic(res.mnemonic, res.passphrase || '', { nostrPubkey: signer.pubkey });
save({ ...load(), pubkey: signer.pubkey, linked: Date.now(), ...sessionOf(signer) });
attaching = false;
@@ -131,6 +132,7 @@ export function nostrLoginFeature(ctx) {
attaching = true;
live = selfHealing(st.signer);
ctx.onbNostrLogin(!!existing); // before the screen flips — see loginWith
+ ui.navAnimSkip = true; // the handover swaps instantly, no fade
await ctx.openMnemonic(mnemonic, (existing && existing.passphrase) || '', { nostrPubkey: st.signer.pubkey });
save({ ...load(), pubkey: st.signer.pubkey, linked: Date.now(), ...sessionOf(st.signer) });
attaching = false;