mirror of https://github.com/BTCPrivate/copay.git
Show fiat in the alternative currency
This commit is contained in:
parent
a27addfdc3
commit
4ee3c5889d
|
@ -84,6 +84,9 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
|||
}
|
||||
|
||||
$scope.btx = txFormatService.processTx(tx);
|
||||
txFormatService.formatAlternativeStr(tx.fees, function(v) {
|
||||
$scope.feeFiatStr = v;
|
||||
});
|
||||
|
||||
if ($scope.btx.action != 'invalid') {
|
||||
if ($scope.btx.action == 'sent') $scope.title = gettextCatalog.getString('Sent Funds');
|
||||
|
|
|
@ -77,10 +77,11 @@
|
|||
</div>
|
||||
<i class="icon bp-arrow-right"></i>
|
||||
</a>
|
||||
<div class="item single-line">
|
||||
<div class="item single-line" ng-click="toggleFeeFiat = !toggleFeeFiat">
|
||||
<span class="label" translate>Fee</span>
|
||||
<span class="item-note">
|
||||
{{btx.feeStr}}
|
||||
<span ng-show="!toggleFeeFiat">{{btx.feeStr}}</span>
|
||||
<span ng-show="toggleFeeFiat">{{feeFiatStr}}</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="item single-line" ng-click="updateTx()">
|
||||
|
|
Loading…
Reference in New Issue