From faad4181d556cd96be4c4a13d134ebd254a312e4 Mon Sep 17 00:00:00 2001 From: Pigpig105 <81789882+Pigpig105@users.noreply.github.com> Date: Tue, 29 Nov 2022 09:03:15 -0800 Subject: [PATCH] Update user-info-view.js --- .../user-info-view/user-info-view.js | 35 +++++++------------ 1 file changed, 13 insertions(+), 22 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 646d5a43..53421bae 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 @@ -1147,7 +1147,7 @@ class UserInfoView extends connect(store)(LitElement) {
- this.openTrades()}>${translate("explorerpage.exp21")} + this.openTrades()}>${translate("explorerpage.exp3")} this.closeCompleteInfoDialog()} dialog-dismiss>${translate("general.close")}
@@ -1163,17 +1163,17 @@ class UserInfoView extends connect(store)(LitElement) { - +
this.openUserBoughtDialog()}>

this.openUserSoldDialog()}>

- this.closeMoreInfoDialog()} dialog-dismiss>${translate("general.close")} + this.closeTrades()} dialog-dismiss>${translate("general.close")}
- +
${this.boughtBTCTemplate()} @@ -1193,7 +1193,7 @@ class UserInfoView extends connect(store)(LitElement) {
- +
${this.soldBTCTemplate()} @@ -1313,7 +1313,11 @@ class UserInfoView extends connect(store)(LitElement) { await this.getAddressUserBalance(myAddress) this.displayAddress = this.addressResult.address this.displayLevel = this.addressResult.level - this.shadowRoot.getElementById('userInfoDialog').open() + this.isLoadingCompleteInfo = true + this.shadowRoot.getElementById('userFullInfoDialog').open() + await this.getStartMint() + await this.getPaymentsGridItems() + this.isLoadingCompleteInfo = false } async getAddressUserInfo(infoAddress) { @@ -1503,19 +1507,6 @@ 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 @@ -1781,7 +1772,7 @@ class UserInfoView extends connect(store)(LitElement) { } openTrades() { - this.shadowRoot.getElementById('userMoreInfoDialog').open() + this.shadowRoot.getElementById('userTrades').open() this.shadowRoot.getElementById('userInfoDialog').close() } @@ -1845,8 +1836,8 @@ class UserInfoView extends connect(store)(LitElement) { this.shadowRoot.getElementById('userErrorDialog').close() } - closeMoreInfoDialog() { - this.shadowRoot.getElementById('userMoreInfoDialog').close() + closeTrades() { + this.shadowRoot.getElementById('userTrades').close() } closeCompleteInfoDialog() {