mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
Merge pull request #213 from Philreact/bugfix/change-wallet-reload-placement-and-logic
change placement and logic of refresh wallet
This commit is contained in:
commit
cbec713796
@ -884,6 +884,36 @@ class MultiWallet extends LitElement {
|
|||||||
this.pingCoinBalancesController = this.pingCoinBalancesController.bind(this)
|
this.pingCoinBalancesController = this.pingCoinBalancesController.bind(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
refreshWallet(){
|
||||||
|
const coin = this._selectedWallet
|
||||||
|
switch (coin) {
|
||||||
|
case 'qort':
|
||||||
|
this.tabWalletQort();
|
||||||
|
break
|
||||||
|
case 'arrr':
|
||||||
|
this.tabWalletArrr();
|
||||||
|
break
|
||||||
|
case 'btc':
|
||||||
|
this.tabWalletBtc();
|
||||||
|
break;
|
||||||
|
case 'ltc':
|
||||||
|
this.tabWalletLtc();
|
||||||
|
break;
|
||||||
|
case 'doge':
|
||||||
|
this.tabWalletDoge();
|
||||||
|
break
|
||||||
|
case 'dgb':
|
||||||
|
this.tabWalletDgb()
|
||||||
|
break;
|
||||||
|
case 'rvn':
|
||||||
|
this.tabWalletRvn();
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return html`
|
return html`
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
@ -921,7 +951,11 @@ class MultiWallet extends LitElement {
|
|||||||
|
|
||||||
<div class="transactions-wrapper">
|
<div class="transactions-wrapper">
|
||||||
<h2 class="wallet-header">
|
<h2 class="wallet-header">
|
||||||
|
<div style="display:flex;align-items:center;gap:20px">
|
||||||
${translate("walletpage.wchange2")}
|
${translate("walletpage.wchange2")}
|
||||||
|
|
||||||
|
<vaadin-icon @click=${this.refreshWallet} style="cursor:pointer" icon="vaadin:refresh" slot="prefix"></vaadin-icon>
|
||||||
|
</div>
|
||||||
<div class="wallet-address" ?hidden="${this.getSelectedWalletAddress().length < 1}">
|
<div class="wallet-address" ?hidden="${this.getSelectedWalletAddress().length < 1}">
|
||||||
<span>${this.getSelectedWalletAddress()}</span>
|
<span>${this.getSelectedWalletAddress()}</span>
|
||||||
<button-icon-copy
|
<button-icon-copy
|
||||||
@ -954,9 +988,7 @@ class MultiWallet extends LitElement {
|
|||||||
<qortal-qrcode-generator data="${this.getSelectedWalletAddress()}" mode="octet" format="html" auto></qortal-qrcode-generator>
|
<qortal-qrcode-generator data="${this.getSelectedWalletAddress()}" mode="octet" format="html" auto></qortal-qrcode-generator>
|
||||||
</div>
|
</div>
|
||||||
<div id="transactions">
|
<div id="transactions">
|
||||||
<div style="display:flex;width:100%;justify-content:flex-end">
|
|
||||||
<vaadin-button theme="primary medium" style="width: auto;" @click=${() => this.fetchWalletDetails(this._selectedWallet)}><vaadin-icon icon="vaadin:refresh" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange60")}</vaadin-button>
|
|
||||||
</div>
|
|
||||||
${this.loading ? html`<paper-spinner-lite style="display: block; margin: 5px auto;" active></paper-spinner-lite>` : ''}
|
${this.loading ? html`<paper-spinner-lite style="display: block; margin: 5px auto;" active></paper-spinner-lite>` : ''}
|
||||||
<div id="transactionsDOM"></div>
|
<div id="transactionsDOM"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user