Wallet/src/js/controllers/modals/paypro.js

15 lines
478 B
JavaScript
Raw Normal View History

2016-05-26 10:40:20 -03:00
'use strict';
angular.module('copayApp.controllers').controller('payproController', function($scope) {
2016-05-26 10:40:20 -03:00
var self = $scope.self;
$scope.alternative = self.alternativeAmount;
$scope.alternativeIsoCode = self.alternativeIsoCode;
$scope.isRateAvailable = self.isRateAvailable;
$scope.unitTotal = ($scope.paypro.amount * self.satToUnit).toFixed(self.unitDecimals);
$scope.unitName = self.unitName;
$scope.cancel = function() {
$scope.payproModal.hide();
};
});