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

16 lines
527 B
JavaScript
Raw Normal View History

2016-05-26 10:40:20 -03:00
'use strict';
angular.module('copayApp.controllers').controller('payproController', function($scope, profileService) {
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();
$scope.payproModal.remove();
};
});