fix(wallet): fix qml warnings and errors in Wallet
This commit is contained in:
parent
c995ff20b0
commit
49adcd9b59
|
@ -69,7 +69,7 @@ Item {
|
|||
|
||||
d.displayAllAddresses()
|
||||
|
||||
if (!!rightPanelStackView.currentItem.resetView) {
|
||||
if (rightPanelStackView.currentItem && !!rightPanelStackView.currentItem.resetView) {
|
||||
rightPanelStackView.currentItem.resetView()
|
||||
}
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ QtObject {
|
|||
// Collectibles Filters
|
||||
property var collectiblesList: activityController.collectiblesModel
|
||||
property var collectiblesFilter: []
|
||||
property bool loadingCollectibles: activityController.status.loadingCollectibles
|
||||
readonly property bool loadingCollectibles: activityController.status.loadingCollectibles ? activityController.status.loadingCollectibles : false
|
||||
function updateCollectiblesModel() {
|
||||
activityController.updateCollectiblesModel()
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ FocusScope {
|
|||
networkConnectionStore: root.networkConnectionStore
|
||||
}
|
||||
|
||||
Column {
|
||||
Item {
|
||||
id: contentWrapper
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
|
|
@ -70,8 +70,6 @@ RightTabBaseView {
|
|||
}
|
||||
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
spacing: 0
|
||||
|
||||
ImportKeypairInfo {
|
||||
|
|
|
@ -183,29 +183,33 @@ Item {
|
|||
function getPairings(callback) {
|
||||
console.debug(`WC WalletConnectSDK.wcCall.getPairings;`)
|
||||
|
||||
d.engine.runJavaScript(`wc.getPairings()`, function(result) {
|
||||
console.debug(`WC WalletConnectSDK.wcCall.getPairings; result: ${JSON.stringify(result, null, 2)}`)
|
||||
if (d.engine) {
|
||||
d.engine.runJavaScript(`wc.getPairings()`, function(result) {
|
||||
console.debug(`WC WalletConnectSDK.wcCall.getPairings; result: ${JSON.stringify(result, null, 2)}`)
|
||||
|
||||
if (callback && result) {
|
||||
callback(result)
|
||||
}
|
||||
})
|
||||
if (callback && result) {
|
||||
callback(result)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function getActiveSessions(callback) {
|
||||
console.debug(`WC WalletConnectSDK.wcCall.getActiveSessions;`)
|
||||
|
||||
d.engine.runJavaScript(`wc.getActiveSessions()`, function(result) {
|
||||
let allSessions = ""
|
||||
for (var key of Object.keys(result)) {
|
||||
allSessions += `\nsessionTopic: ${key} relatedPairingTopic: ${result[key].pairingTopic}`;
|
||||
}
|
||||
console.debug(`WC WalletConnectSDK.wcCall.getActiveSessions; result: ${allSessions}`)
|
||||
if (d.engine) {
|
||||
d.engine.runJavaScript(`wc.getActiveSessions()`, function(result) {
|
||||
let allSessions = ""
|
||||
for (var key of Object.keys(result)) {
|
||||
allSessions += `\nsessionTopic: ${key} relatedPairingTopic: ${result[key].pairingTopic}`;
|
||||
}
|
||||
console.debug(`WC WalletConnectSDK.wcCall.getActiveSessions; result: ${allSessions}`)
|
||||
|
||||
if (callback && result) {
|
||||
callback(result)
|
||||
}
|
||||
})
|
||||
if (callback && result) {
|
||||
callback(result)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function pair(pairLink) {
|
||||
|
|
|
@ -60,7 +60,7 @@ StatusListItem {
|
|||
readonly property double outFiatValue: isModelDataValid && isMultiTransaction ? rootStore.getFiatValue(outCryptoValue, modelData.outSymbol, currentCurrency): 0.0
|
||||
readonly property double feeCryptoValue: 0.0 // TODO fill when bridge data is implemented
|
||||
readonly property double feeFiatValue: 0.0 // TODO fill when bridge data is implemented
|
||||
readonly property string communityName: isModelDataValid ? modelData.communityName : ""
|
||||
readonly property string communityName: isModelDataValid && modelData.communityName ? modelData.communityName : ""
|
||||
readonly property string networkColor: isModelDataValid ? rootStore.getNetworkColor(modelData.chainId) : ""
|
||||
readonly property string networkName: isModelDataValid ? rootStore.getNetworkFullName(modelData.chainId) : ""
|
||||
readonly property string networkNameIn: isMultiTransaction ? rootStore.getNetworkFullName(modelData.chainIdIn) : ""
|
||||
|
@ -68,7 +68,7 @@ StatusListItem {
|
|||
readonly property string addressNameTo: isModelDataValid ? walletRootStore.getNameForAddress(modelData.recipient) : ""
|
||||
readonly property string addressNameFrom: isModelDataValid ? walletRootStore.getNameForAddress(modelData.sender) : ""
|
||||
readonly property bool isNFT: isModelDataValid && modelData.isNFT
|
||||
readonly property bool isCommunityAssetViaAirdrop: isModelDataValid && modelData.isCommunityAssetViaAirdrop
|
||||
readonly property bool isCommunityAssetViaAirdrop: isModelDataValid && modelData.isCommunityAssetViaAirdrop ? modelData.isCommunityAssetViaAirdrop : false
|
||||
|
||||
readonly property string transactionValue: {
|
||||
if (!isModelDataValid) {
|
||||
|
|
Loading…
Reference in New Issue