diff options
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/ark.js | 32 | ||||
| -rw-r--r-- | src/features/nostrlogin.js | 2 | ||||
| -rw-r--r-- | src/features/nwc.js | 2 | ||||
| -rw-r--r-- | src/features/sync.js | 2 |
4 files changed, 6 insertions, 32 deletions
diff --git a/src/features/ark.js b/src/features/ark.js index baee9a4..c9ea4e9 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -14,8 +14,7 @@ import { decodeVtxo, getVtxoStatus, VTXO_STATE_SPENT, concatBytes } from '../ark import { signedExitTxs, buildBumpChild, buildExitClaim, submitPackage } from '../ark/exit.js'; import { utxoId } from '../wallet.js'; import { - getNetwork, setNetwork, arkPresets, getArkProviderId, setArkProviderId, - getArkCustom, setArkCustom, getArkConfig, + getNetwork, setNetwork, getArkProviderId, getArkConfig, } from '../api.js'; import { t } from '../i18n.js'; import { qrSvg } from '../qr.js'; @@ -833,37 +832,12 @@ export function arkFeature(ctx) { function arkCard() { const net = getNetwork(); + // No provider picker: coinos is the provider (per-network defaults cover + // dev networks). The card is status only. const id = getArkProviderId(net); - const custom = getArkCustom(net); - const presets = arkPresets(net); - const applyProvider = (v) => { - setArkProviderId(v, net); - ui.receiveType = null; - initArk(); - render(); - }; const head = [ h('h3', { class: 'row gap6', style: 'align-items:center' }, t('arkTitle')), h('p', { class: 'small muted', style: 'margin:0' }, t('arkDesc')), - h('select', { onChange: (e) => applyProvider(e.target.value) }, - presets.map((p) => h('option', { value: p.id, selected: p.id === id }, p.label))), - id === 'custom' - ? h('div', { class: 'col', style: 'gap:8px' }, - h('label', { class: 'field' }, - h('span', { class: 'lab' }, t('arkServerUrl')), - h('input', { - type: 'text', class: 'mono-input', placeholder: 'https://ark.example.com', - autocapitalize: 'none', autocomplete: 'off', spellcheck: 'false', value: custom.ark, - onChange: (e) => { setArkCustom({ ark: e.target.value.trim(), esplora: custom.esplora }, net); initArk(); render(); }, - })), - h('label', { class: 'field' }, - h('span', { class: 'lab' }, t('arkEsploraUrl')), - h('input', { - type: 'text', class: 'mono-input', placeholder: 'https://mempool.example.com/api', - autocapitalize: 'none', autocomplete: 'off', spellcheck: 'false', value: custom.esplora, - onChange: (e) => { setArkCustom({ ark: custom.ark, esplora: e.target.value.trim() }, net); initArk(); render(); }, - }))) - : null, ui.arkError ? h('div', { class: 'notice err' }, ui.arkError) : null, ]; if (id === 'off' || wallet.watchOnly) { diff --git a/src/features/nostrlogin.js b/src/features/nostrlogin.js index 20cd6f2..9b4b992 100644 --- a/src/features/nostrlogin.js +++ b/src/features/nostrlogin.js @@ -209,6 +209,6 @@ export function nostrLoginFeature(ctx) { } catch { return null; } }, unlockExtra() { return unlockExtra(); }, - settingsCards() { return [settingsCard()]; }, + nostrSettingsCards() { return [settingsCard()]; }, }; } diff --git a/src/features/nwc.js b/src/features/nwc.js index ffdabda..2d9d633 100644 --- a/src/features/nwc.js +++ b/src/features/nwc.js @@ -766,6 +766,6 @@ export function nwcFeature(ctx) { nwcOfferString() { return hook('arkReady') && !wallet.watchOnly ? offerString() : null; }, init() { listen(); startWatchdog(); refreshRegistration(); reconcileBg(); }, stop() { stop(); if (watchdog) { clearInterval(watchdog); watchdog = null; } }, - settingsCards() { return [nwcCard()]; }, + nostrSettingsCards() { return [nwcCard()]; }, }; } diff --git a/src/features/sync.js b/src/features/sync.js index 94dfc68..96616c9 100644 --- a/src/features/sync.js +++ b/src/features/sync.js @@ -252,7 +252,7 @@ export function syncFeature(ctx) { return { id: 'sync', - settingsCards() { + nostrSettingsCards() { return wallet.watchOnly || !wallet.mnemonic ? [] : [syncCard()]; }, }; |
