mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
Porting: Uiux/fixes/2180-xpub-usb (#2189)
* fixes 2.0.0-pre9: Devices: Adding xpubs via USB not possible #2180 * fix AttributeError: type object 'ElectrumService' has no attribute 'blueprint'
This commit is contained in:
parent
5950e39a8c
commit
3b4c25b0f3
2 changed files with 2 additions and 4 deletions
|
|
@ -15,8 +15,6 @@ from cryptoadvance.specter.devices.elements_core import ElementsCore
|
|||
from cryptoadvance.specter.managers.node_manager import NodeManager
|
||||
from cryptoadvance.specter.node import Node
|
||||
|
||||
from cryptoadvance.specterext.electrum.controller import specter
|
||||
|
||||
from ..devices.bitcoin_core import BitcoinCore, BitcoinCoreWatchOnly
|
||||
from ..helpers import is_testnet
|
||||
from ..key import Key
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@
|
|||
for (let existingRow of xpubsTable.children) {
|
||||
let existingRowDerivation = document.getElementById(existingRow.id + '-derivation')
|
||||
if (existingRowDerivation && existingRowDerivation.innerHTML == derivation) {
|
||||
document.getElementById(existingRow.id + '-xpub').innerHTML = xpub;
|
||||
document.getElementById(existingRow.id + '-xpub').childNodes[0].innerHTML = xpub;
|
||||
document.getElementById(existingRow.id + '-xpub-hidden').value = xpub;
|
||||
if (purpose != 'Custom' && document.getElementById(existingRow.id + '-purpose').value == 'Custom') {
|
||||
document.getElementById(existingRow.id + '-purpose').value = purpose;
|
||||
|
|
@ -325,7 +325,7 @@
|
|||
let xpubsTable = document.getElementById('xpubs_table');
|
||||
|
||||
for (let xpubRow of [].slice.call(xpubsTable.children, 0, xpubsTable.children.length - 3)) {
|
||||
if (document.getElementById(xpubRow.id + '-xpub').innerHTML != '-') {
|
||||
if (document.getElementById(xpubRow.id + '-xpub').childNodes[0].innerHTML != '-') {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue