4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-12 02:05:51 +00:00

Update user-info-view.js

This commit is contained in:
Pigpig105 2022-11-29 08:17:53 -08:00 committed by GitHub
parent 6f67ba3cda
commit 2615d6a132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1063,21 +1063,6 @@ class UserInfoView extends connect(store)(LitElement) {
render() {
return html`
<paper-dialog style="background: var(--white); border: 1px solid var(--black); border-radius: 5px;" id="userInfoDialog" modal>
<div class="card-container">
<span class="level">${translate("mintingpage.mchange27")} ${this.displayLevel}</span>
${this.founderBadge()}
${this.avatarImage()}
<h2>${this.infoAccountName}</h2>
<h4>${this.displayAddress}</h4>
<p>${translate("explorerpage.exp2")}: ${this.displayBalance} QORT</p>
</div>
<div class="buttons">
<mwc-button @click=${() => this.openCompleteInfoDialog()}>${translate("explorerpage.exp3")}</mwc-button>
<mwc-button class='decline' @click=${() => this.closeInfoDialog()} dialog-dismiss>${translate("general.close")}</mwc-button>
</div>
</paper-dialog>
<paper-dialog class="full-info-wrapper" id="userFullInfoDialog" modal>
<div class="full-info-logo">${this.avatarFullImage()}</div>
<h3>${this.infoAccountName}</h3>
@ -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 = []