mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-03-27 07:45:54 +00:00
Update user-info-view.js
This commit is contained in:
parent
6f51ab39ff
commit
faad4181d5
@ -1147,7 +1147,7 @@ class UserInfoView extends connect(store)(LitElement) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<mwc-button @click=${() => this.openTrades()}>${translate("explorerpage.exp21")}</mwc-button>
|
<mwc-button @click=${() => this.openTrades()}>${translate("explorerpage.exp3")}</mwc-button>
|
||||||
<mwc-button class='decline' @click=${() => this.closeCompleteInfoDialog()} dialog-dismiss>${translate("general.close")}</mwc-button>
|
<mwc-button class='decline' @click=${() => this.closeCompleteInfoDialog()} dialog-dismiss>${translate("general.close")}</mwc-button>
|
||||||
</div>
|
</div>
|
||||||
</paper-dialog>
|
</paper-dialog>
|
||||||
@ -1163,17 +1163,17 @@ class UserInfoView extends connect(store)(LitElement) {
|
|||||||
</div>
|
</div>
|
||||||
</paper-dialog>
|
</paper-dialog>
|
||||||
|
|
||||||
<paper-dialog style="background: var(--white); border: 1px solid var(--black); border-radius: 5px;" id="userMoreInfoDialog" modal>
|
<paper-dialog style="background: var(--white); border: 1px solid var(--black); border-radius: 5px;" id="userTrades" modal>
|
||||||
<div class="card-container-button">
|
<div class="card-container-button">
|
||||||
<mwc-button dense unelevated label="${translate("explorerpage.exp8")}" @click=${() => this.openUserBoughtDialog()}></mwc-button><br><br>
|
<mwc-button dense unelevated label="${translate("explorerpage.exp8")}" @click=${() => this.openUserBoughtDialog()}></mwc-button><br><br>
|
||||||
<mwc-button dense unelevated label="${translate("explorerpage.exp9")}" @click=${() => this.openUserSoldDialog()}></mwc-button><br><br>
|
<mwc-button dense unelevated label="${translate("explorerpage.exp9")}" @click=${() => this.openUserSoldDialog()}></mwc-button><br><br>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<mwc-button class='decline' @click=${() => this.closeMoreInfoDialog()} dialog-dismiss>${translate("general.close")}</mwc-button>
|
<mwc-button class='decline' @click=${() => this.closeTrades()} dialog-dismiss>${translate("general.close")}</mwc-button>
|
||||||
</div>
|
</div>
|
||||||
</paper-dialog>
|
</paper-dialog>
|
||||||
|
|
||||||
<paper-dialog style="background: var(--white); border: 1px solid var(--black); border-radius: 5px;" id="userBoughtDialog" modal>
|
<paper-dialog style="background: var(--white); border: 1px solid var(--black); border-radius: 5px;" id="userBoughtDialog" entry-animation="scale-up-animation" exit-animation="fade-out-animation" with-backdrop>
|
||||||
<div class="card-explorer-container">
|
<div class="card-explorer-container">
|
||||||
<div id="first-explorer-section">
|
<div id="first-explorer-section">
|
||||||
${this.boughtBTCTemplate()}
|
${this.boughtBTCTemplate()}
|
||||||
@ -1193,7 +1193,7 @@ class UserInfoView extends connect(store)(LitElement) {
|
|||||||
</div>
|
</div>
|
||||||
</paper-dialog>
|
</paper-dialog>
|
||||||
|
|
||||||
<paper-dialog style="background: var(--white); border: 1px solid var(--black); border-radius: 5px; overflow: auto;" id="userSoldDialog" modal>
|
<paper-dialog style="background: var(--white); border: 1px solid var(--black); border-radius: 5px; overflow: auto;" id="userSoldDialog" entry-animation="scale-up-animation" exit-animation="fade-out-animation" with-backdrop>
|
||||||
<div class="card-explorer-container">
|
<div class="card-explorer-container">
|
||||||
<div id="first-explorer-section">
|
<div id="first-explorer-section">
|
||||||
${this.soldBTCTemplate()}
|
${this.soldBTCTemplate()}
|
||||||
@ -1313,7 +1313,11 @@ class UserInfoView extends connect(store)(LitElement) {
|
|||||||
await this.getAddressUserBalance(myAddress)
|
await this.getAddressUserBalance(myAddress)
|
||||||
this.displayAddress = this.addressResult.address
|
this.displayAddress = this.addressResult.address
|
||||||
this.displayLevel = this.addressResult.level
|
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) {
|
async getAddressUserInfo(infoAddress) {
|
||||||
@ -1503,19 +1507,6 @@ class UserInfoView extends connect(store)(LitElement) {
|
|||||||
this.shadowRoot.getElementById('showTxDetailsDialog').open()
|
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() {
|
async getBoughtBTCGridItems() {
|
||||||
const myNode = store.getState().app.nodeConfig.knownNodes[store.getState().app.nodeConfig.node]
|
const myNode = store.getState().app.nodeConfig.knownNodes[store.getState().app.nodeConfig.node]
|
||||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
||||||
@ -1781,7 +1772,7 @@ class UserInfoView extends connect(store)(LitElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openTrades() {
|
openTrades() {
|
||||||
this.shadowRoot.getElementById('userMoreInfoDialog').open()
|
this.shadowRoot.getElementById('userTrades').open()
|
||||||
this.shadowRoot.getElementById('userInfoDialog').close()
|
this.shadowRoot.getElementById('userInfoDialog').close()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1845,8 +1836,8 @@ class UserInfoView extends connect(store)(LitElement) {
|
|||||||
this.shadowRoot.getElementById('userErrorDialog').close()
|
this.shadowRoot.getElementById('userErrorDialog').close()
|
||||||
}
|
}
|
||||||
|
|
||||||
closeMoreInfoDialog() {
|
closeTrades() {
|
||||||
this.shadowRoot.getElementById('userMoreInfoDialog').close()
|
this.shadowRoot.getElementById('userTrades').close()
|
||||||
}
|
}
|
||||||
|
|
||||||
closeCompleteInfoDialog() {
|
closeCompleteInfoDialog() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user