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:
k9ert 2023-02-10 15:36:34 +01:00 committed by GitHub
parent 5950e39a8c
commit 3b4c25b0f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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
}