aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.js1
-rw-r--r--src/features/names.js9
-rw-r--r--src/i18n.js2
3 files changed, 10 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 24cc56c..cfd2f49 100644
--- a/src/app.js
+++ b/src/app.js
@@ -3614,6 +3614,7 @@ const ctx = {
// build without the target feature simply gets null back
hook: (name, ...args) => featureHook(name, ...args),
getAccount: () => accountSel(),
+ setAccount: (a, dir) => setAccountSel(a, dir),
// Open (or create) a wallet from a mnemonic — used by nostr login.
openMnemonic: async (mnemonic, passphrase, opts) => enterWallet(mnemonic, passphrase, opts),
// A nostr login that lands mid-wizard: a restored wallet has been through
diff --git a/src/features/names.js b/src/features/names.js
index 47bf0c6..afd681c 100644
--- a/src/features/names.js
+++ b/src/features/names.js
@@ -23,7 +23,7 @@ const DOMAIN = 'coinos.io';
const AUTH_KIND = 21353;
export function namesFeature(ctx) {
- const { h, ui, render, wallet, hook, toast, copy, copyBtn, brandHeader, goBack } = ctx;
+ const { h, ui, render, wallet, hook, toast, copy, copyBtn, brandHeader, goBack, setAccount } = ctx;
// The wallet's own key signs registrar requests: it's the one key that is
// always available — offline, in the background, with no signer attached.
@@ -479,7 +479,12 @@ export function namesFeature(ctx) {
opt('bolt11', t('namesMoreBolt11'), t('namesMoreBolt11How')),
opt('bolt12', t('namesMoreBolt12'), t('namesMoreBolt12How'), loadOffers),
opt('ark', t('namesMoreArk'), t('namesMoreArkHow')),
- opt('clink', t('namesMoreClink'), t('namesMoreClinkHow')));
+ opt('clink', t('namesMoreClink'), t('namesMoreClinkHow')),
+ // Not a pane: a plain on-chain address means receiving to Savings, so
+ // this hands over to the savings receive view instead of showing a
+ // second address here.
+ opt('onchain', t('namesMoreOnchain'), t('namesMoreOnchainHow'),
+ () => { ui.namesMore = null; setAccount('savings'); }));
}
function moreSection() {
diff --git a/src/i18n.js b/src/i18n.js
index fdb5ccc..6fcf01f 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -607,6 +607,8 @@ const STR = {
namesMoreArkHow: 'Get paid directly from any Ark wallet',
namesMoreClink: 'Nostr offer (CLINK)',
namesMoreClinkHow: 'A static code Nostr wallets can pay',
+ namesMoreOnchain: 'Bitcoin address (on-chain)',
+ namesMoreOnchainHow: 'Switch to Savings for a regular on-chain address',
namesInvAmountPh: 'Amount (sats)',
namesInvMemoPh: 'Description (optional)',
namesInvCreate: 'Create invoice',