mirror of https://github.com/BTCPrivate/copay.git
Fix paypro popup info
This commit is contained in:
parent
59d6bec60f
commit
4285c0e81e
|
@ -407,10 +407,13 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
var $oscope = $scope;
|
||||
$scope.openPPModal = function(merchantData) {
|
||||
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
||||
var w = $rootScope.wallet;
|
||||
var satToUnit = 1 / w.settings.unitToSatoshi;
|
||||
$scope.md = merchantData;
|
||||
$scope.alternative = $oscope._alternative;
|
||||
$scope.alternativeIsoCode = $oscope.alternativeIsoCode;
|
||||
$scope.isRateAvailable = $oscope.isRateAvailable;
|
||||
$scope.unitTotal = (merchantData.total * satToUnit).toFixed(w.settings.unitDecimals);
|
||||
|
||||
$scope.cancel = function() {
|
||||
$modalInstance.dismiss('cancel');
|
||||
|
@ -418,7 +421,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
};
|
||||
$modal.open({
|
||||
templateUrl: 'views/modals/paypro.html',
|
||||
windowClass: 'tiny',
|
||||
windowClass: 'medium',
|
||||
controller: ModalInstanceCtrl,
|
||||
});
|
||||
};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="modal-mobile">
|
||||
<div class="text-center">
|
||||
<div class="size-48">
|
||||
{{md.unitTotal}} {{$root.wallet.settings.unitName}}
|
||||
{{unitTotal}} {{$root.wallet.settings.unitName}}
|
||||
</div>
|
||||
<div class="size-18 m5t text-gray">
|
||||
{{ alternative }} {{ alternativeIsoCode }}
|
||||
|
|
Loading…
Reference in New Issue