diff options
| author | Adam Soltys <[email protected]> | 2026-09-21 22:12:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-21 22:12:49 -0700 |
| commit | 5bfba60f483210488d7ea94dd48c038e243c0757 (patch) | |
| tree | 043d3d09cbb6e02704e30a5640d3c706086846bf /src/features | |
| parent | 92fbb3652d25eac589c6b5330dd70df0e0c121f6 (diff) | |
| download | coinosv3-5bfba60f483210488d7ea94dd48c038e243c0757.tar.gz coinosv3-5bfba60f483210488d7ea94dd48c038e243c0757.zip | |
Settings: the terminal's cards (POS tokens, tap-to-pay link) move to Point of sale; the show/hide toggle is gone.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/names.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/features/names.js b/src/features/names.js index dd6f700..40312de 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -484,14 +484,11 @@ export function namesFeature(ctx) { // POS surfaces are MERCHANT tools: hidden for everyone else behind a // one-line toggle on the address card. The flag lives in the names // feature state, so it follows the account to every device via sync. - const merchant = !!st.merchant; return [ card('owndomain', t('namesOwnDomain'), t('namesOwnDomainHow'), h('div', { class: 'addr-box break', style: 'font-size:11px' }, `${st.name}.user._bitcoin-payment.yourdomain.com. CNAME ${st.name}.user._bitcoin-payment.${domain}.`)), card('ownnode', t('namesOwnNode'), t('namesOwnNodeMenuHow'), ownNodeSection()), - merchant ? posLinkCard(st) : null, - merchant ? posCard(st) : null, card('custom', t('namesCustom'), t('namesCustomHow'), claimForm(false)), card('names', t('namesTitle'), null, h('div', { class: 'addr-box break', style: 'font-size:14px' }, addr), @@ -499,13 +496,17 @@ export function namesFeature(ctx) { copyBtn(addr, t('namesCopy')), h('button', { class: 'btn-ghost btn-sm', onClick: async () => { await release(); toast(t('namesReleased')); render(); - } }, t('namesRelease'))), - h('button', { - class: 'linklike small', style: 'align-self:flex-start;margin-top:4px', - onClick: () => { save({ ...load(), merchant: !merchant }); render(); }, - }, merchant ? t('namesMerchantHide') : t('namesMerchantShow'))), + } }, t('namesRelease')))), ].filter(Boolean); } + // The terminal's cards live on the Point of sale settings page now — no + // show/hide toggle; a page of their own is the switch. + function posSettingsCardsForName() { + if (!available()) return []; + const st = load(); + if (!st.name) return []; + return [posLinkCard(st), posCard(st)]; // the page reverses: tokens first, then the tap-to-pay link + } // A coinos POS terminal (coinos-pos) takes payments to this name with a // bearer token the registrar mints for the owner: the terminal can ring up @@ -945,6 +946,7 @@ export function namesFeature(ctx) { return null; }, settingsCards() { return namesCards(); }, + posSettingsCards() { return posSettingsCardsForName(); }, // Settings → Nostr: the CLINK zap code (a nostr offer, so it lives with // the other nostr settings rather than under the payment address). nostrSettingsCards() { |
