mirror of https://github.com/BTCPrivate/copay.git
Fix symbols
This commit is contained in:
parent
e0eb06156e
commit
ce8c8d41fc
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('topUpController', function($scope, $log, $state, $timeout, $ionicHistory, $ionicConfig, $sce, lodash, popupService, profileService, ongoingProcess, walletService, configService, platformInfo, bitpayService, bitpayCardService, payproService, bwcError, txFormatService, sendMaxService) {
|
||||
angular.module('copayApp.controllers').controller('topUpController', function($scope, $log, $state, $timeout, $ionicHistory, $ionicConfig, lodash, popupService, profileService, ongoingProcess, walletService, configService, platformInfo, bitpayService, bitpayCardService, payproService, bwcError, txFormatService, sendMaxService) {
|
||||
|
||||
var amount;
|
||||
var currency;
|
||||
|
@ -95,14 +95,13 @@ angular.module('copayApp.controllers').controller('topUpController', function($s
|
|||
var code;
|
||||
switch(currencyCode) {
|
||||
case 'EUR':
|
||||
code = '€';
|
||||
$scope.currencySymbol = '€';
|
||||
break;
|
||||
case 'GBP':
|
||||
code = '£';
|
||||
$scope.currencySymbol = '£';
|
||||
break;
|
||||
default : code = '$';
|
||||
default : $scope.currencySymbol = '$';
|
||||
};
|
||||
$scope.htmlCurrencyCode = $sce.trustAsHtml(code);
|
||||
bitpayCardService.getRates(currencyCode, function(err, data) {
|
||||
if (err) $log.error(err);
|
||||
$scope.rate = data.rate;
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
<div class="amount-final">{{amountUnitStr}}</div>
|
||||
<div class="alternative">
|
||||
<span ng-if="rate">@
|
||||
<span ng-bind-html="htmlCurrencyCode"></span>
|
||||
{{rate | currency:' ':2}} per BTC</span>
|
||||
{{rate | currency:currencySymbol:2}} per BTC</span>
|
||||
<span ng-if="!rate">...</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue