Show fiat in the alternative currency

This commit is contained in:
Gustavo Maximiliano Cortez 2017-03-07 16:50:44 -03:00
parent a27addfdc3
commit 4ee3c5889d
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 6 additions and 2 deletions

View File

@ -84,6 +84,9 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
} }
$scope.btx = txFormatService.processTx(tx); $scope.btx = txFormatService.processTx(tx);
txFormatService.formatAlternativeStr(tx.fees, function(v) {
$scope.feeFiatStr = v;
});
if ($scope.btx.action != 'invalid') { if ($scope.btx.action != 'invalid') {
if ($scope.btx.action == 'sent') $scope.title = gettextCatalog.getString('Sent Funds'); if ($scope.btx.action == 'sent') $scope.title = gettextCatalog.getString('Sent Funds');

View File

@ -77,10 +77,11 @@
</div> </div>
<i class="icon bp-arrow-right"></i> <i class="icon bp-arrow-right"></i>
</a> </a>
<div class="item single-line"> <div class="item single-line" ng-click="toggleFeeFiat = !toggleFeeFiat">
<span class="label" translate>Fee</span> <span class="label" translate>Fee</span>
<span class="item-note"> <span class="item-note">
{{btx.feeStr}} <span ng-show="!toggleFeeFiat">{{btx.feeStr}}</span>
<span ng-show="toggleFeeFiat">{{feeFiatStr}}</span>
</span> </span>
</div> </div>
<div class="item single-line" ng-click="updateTx()"> <div class="item single-line" ng-click="updateTx()">