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';
|
'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 amount;
|
||||||
var currency;
|
var currency;
|
||||||
|
@ -95,14 +95,13 @@ angular.module('copayApp.controllers').controller('topUpController', function($s
|
||||||
var code;
|
var code;
|
||||||
switch(currencyCode) {
|
switch(currencyCode) {
|
||||||
case 'EUR':
|
case 'EUR':
|
||||||
code = '€';
|
$scope.currencySymbol = '€';
|
||||||
break;
|
break;
|
||||||
case 'GBP':
|
case 'GBP':
|
||||||
code = '£';
|
$scope.currencySymbol = '£';
|
||||||
break;
|
break;
|
||||||
default : code = '$';
|
default : $scope.currencySymbol = '$';
|
||||||
};
|
};
|
||||||
$scope.htmlCurrencyCode = $sce.trustAsHtml(code);
|
|
||||||
bitpayCardService.getRates(currencyCode, function(err, data) {
|
bitpayCardService.getRates(currencyCode, function(err, data) {
|
||||||
if (err) $log.error(err);
|
if (err) $log.error(err);
|
||||||
$scope.rate = data.rate;
|
$scope.rate = data.rate;
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
<div class="amount-final">{{amountUnitStr}}</div>
|
<div class="amount-final">{{amountUnitStr}}</div>
|
||||||
<div class="alternative">
|
<div class="alternative">
|
||||||
<span ng-if="rate">@
|
<span ng-if="rate">@
|
||||||
<span ng-bind-html="htmlCurrencyCode"></span>
|
{{rate | currency:currencySymbol:2}} per BTC</span>
|
||||||
{{rate | currency:' ':2}} per BTC</span>
|
|
||||||
<span ng-if="!rate">...</span>
|
<span ng-if="!rate">...</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue