Bug fixes. Split contacts and wallets from send

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-23 17:10:34 -03:00
commit b370e61012
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
8 changed files with 36 additions and 16 deletions

View file

@ -10,6 +10,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
var wallets = profileService.getWallets({
onlyComplete: true
});
$scope.hasWallets = lodash.isEmpty(wallets) ? false : true;
lodash.each(wallets, function(v) {
originalList.push({
@ -25,6 +26,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
addressbookService.list(function(err, ab) {
if (err) $log.error(err);
$scope.hasContacts = lodash.isEmpty(ab) ? false : true;
var contacts = [];
lodash.each(ab, function(v, k) {
contacts.push({
@ -76,6 +78,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
}
$log.debug('Got toAddress:' + addr + ' | ' + item.name);
return $state.transitionTo('tabs.send.amount', {
isWallet: item.isWallet,
toAddress: addr,
toName: item.name,
toEmail: item.email