This commit is contained in:
Matias Alejo Garcia 2016-08-25 11:18:10 -03:00
commit d5d3f9ee28
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
13 changed files with 310 additions and 119 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $ionicModal, $log, $timeout, addressbookService, profileService, lodash, $state, walletService, bitcore ) {
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $ionicModal, $log, $timeout, addressbookService, profileService, lodash, $state, walletService, incomingData ) {
var originalList;
@ -55,16 +55,8 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
$scope.findContact = function(search, opts) {
opts = opts || {};
if (search.indexOf('bitcoin:') === 0) {
if (!walletService.redirFromUri(search)) {
$log.error(err);
}
} else if (/^https?:\/\//.test(search)) {
return $state.go('send.confirm', {paypro: search})
} else if (bitcore.Address.isValid(search, 'livenet')) {
return $state.go('send.amount', {toAddress: search})
} else if (bitcore.Address.isValid(search, 'testnet')) {
return $state.go('send.amount', {toAddress: search})
if (incomingData.redir(search)) {
return;
}
if (!search || search.length < 2) {