From 2615d6a132b4cc2fdcd93aac4edd556dc5c80e81 Mon Sep 17 00:00:00 2001 From: Pigpig105 <81789882+Pigpig105@users.noreply.github.com> Date: Tue, 29 Nov 2022 08:17:53 -0800 Subject: [PATCH] Update user-info-view.js --- .../user-info-view/user-info-view.js | 37 +++++++------------ 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/qortal-ui-core/src/components/user-info-view/user-info-view.js b/qortal-ui-core/src/components/user-info-view/user-info-view.js index 17da98ae..24245058 100644 --- a/qortal-ui-core/src/components/user-info-view/user-info-view.js +++ b/qortal-ui-core/src/components/user-info-view/user-info-view.js @@ -1063,21 +1063,6 @@ class UserInfoView extends connect(store)(LitElement) { render() { return html` - - - ${translate("mintingpage.mchange27")} ${this.displayLevel} - ${this.founderBadge()} - ${this.avatarImage()} - ${this.infoAccountName} - ${this.displayAddress} - ${translate("explorerpage.exp2")}: ${this.displayBalance} QORT - - - this.openCompleteInfoDialog()}>${translate("explorerpage.exp3")} - this.closeInfoDialog()} dialog-dismiss>${translate("general.close")} - - - ${this.avatarFullImage()} ${this.infoAccountName} @@ -1518,6 +1503,19 @@ class UserInfoView extends connect(store)(LitElement) { this.shadowRoot.getElementById('showTxDetailsDialog').open() } + async getAllWithAddress(myAddress) { + await this.getAddressUserInfo(myAddress) + await this.getAddressUserAvatar(myAddress) + await this.getAddressUserBalance(myAddress) + this.displayAddress = this.addressResult.address + this.displayLevel = this.addressResult.level + this.isLoadingCompleteInfo = true + this.shadowRoot.getElementById('userFullInfoDialog').open() + await this.getStartMint() + await this.getPaymentsGridItems() + this.isLoadingCompleteInfo = false + } + async getBoughtBTCGridItems() { const myNode = store.getState().app.nodeConfig.knownNodes[store.getState().app.nodeConfig.node] const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port @@ -1787,15 +1785,6 @@ class UserInfoView extends connect(store)(LitElement) { this.shadowRoot.getElementById('userInfoDialog').close() } - async openCompleteInfoDialog() { - this.isLoadingCompleteInfo = true - this.shadowRoot.getElementById('userFullInfoDialog').open() - this.shadowRoot.getElementById('userMoreInfoDialog').close() - await this.getStartMint() - await this.getPaymentsGridItems() - this.isLoadingCompleteInfo = false - } - async openUserBoughtDialog() { this.shadowRoot.getElementById('userBoughtDialog').open() this.explorerBoughtBTCTrades = []
${translate("explorerpage.exp2")}: ${this.displayBalance} QORT