receive money from glidera in any wallet

This commit is contained in:
Gabriel Bazán 2016-12-12 14:18:49 -03:00
commit 794f6a01df
2 changed files with 12 additions and 5 deletions

View file

@ -36,12 +36,14 @@ angular.module('copayApp.controllers').controller('amountController', function($
throw ('bad params'); throw ('bad params');
} }
glideraService.getLimits($scope.glideraAccessToken, function(err, limits) { if ($scope.isGlidera) {
$scope.limits = limits; glideraService.getLimits($scope.glideraAccessToken, function(err, limits) {
$timeout(function() { $scope.limits = limits;
$scope.$apply(); $timeout(function() {
$scope.$apply();
});
}); });
}); }
var reNr = /^[1234567890\.]$/; var reNr = /^[1234567890\.]$/;
var reOp = /^[\*\+\-\/]$/; var reOp = /^[\*\+\-\/]$/;

View file

@ -70,6 +70,11 @@ angular.module('copayApp.controllers').controller('confirmController', function(
return; return;
} }
if ($scope.isGlidera == 'buy') {
initConfirm();
return;
}
var filteredWallets = []; var filteredWallets = [];
var index = 0; var index = 0;
var enoughFunds = false; var enoughFunds = false;