mirror of https://github.com/BTCPrivate/copay.git
use the correct format for alternative balance
This commit is contained in:
parent
91b60460ac
commit
e7ffbe0c33
|
@ -7,7 +7,7 @@
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="balance-header">
|
<div class="balance-header">
|
||||||
<div class="balance-str">{{wallet.status.availableBalanceStr}}</div>
|
<div class="balance-str">{{wallet.status.availableBalanceStr}}</div>
|
||||||
<div class="balance-alt-str">{{alternativeBalanceStr}}</div>
|
<div class="balance-alt-str">{{alternativeBalanceStr || '...'}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
|
|
|
@ -24,7 +24,7 @@ page-wallet-details {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.balance-alt-str {
|
.balance-alt-str {
|
||||||
font-size: 25px;
|
font-size: 20px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.label {
|
.label {
|
||||||
|
|
|
@ -22,7 +22,7 @@ export class WalletDetailsPage {
|
||||||
console.log('Wallet incomplete');
|
console.log('Wallet incomplete');
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
this.alternativeBalanceStr = this.wallet.status.totalBalanceAlternative + ' ' + this.wallet.status.alternativeIsoCode;
|
||||||
this.getTxHistory();
|
this.getTxHistory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,9 +31,9 @@ export class WalletDetailsPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
getTxHistory(force?: boolean) {
|
getTxHistory(force?: boolean) {
|
||||||
|
let self = this;
|
||||||
this.walletProvider.getTxHistory_(this.wallet, {force: force}).then((txh) => {
|
this.walletProvider.getTxHistory_(this.wallet, {force: force}).then((txh) => {
|
||||||
this.wallet.completeHistory = txh;
|
self.wallet.completeHistory = txh;
|
||||||
this.alternativeBalanceStr = this.wallet.status.totalBalanceAlternative || '0.00' + ' USD'; //TODO use tx-format provider
|
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue