mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #90 from JDonadio/bug/display-wallets-send-view
Fix wallets show
This commit is contained in:
commit
7d68b008b2
|
@ -7,7 +7,9 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
originalList = [];
|
originalList = [];
|
||||||
|
|
||||||
var wallets = profileService.getWallets({onlyComplete: true});
|
var wallets = profileService.getWallets({
|
||||||
|
onlyComplete: true
|
||||||
|
});
|
||||||
|
|
||||||
lodash.each(wallets, function(v) {
|
lodash.each(wallets, function(v) {
|
||||||
originalList.push({
|
originalList.push({
|
||||||
|
@ -36,6 +38,10 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
|
|
||||||
originalList = originalList.concat(contacts);
|
originalList = originalList.concat(contacts);
|
||||||
$scope.list = lodash.clone(originalList);
|
$scope.list = lodash.clone(originalList);
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
}, 1);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -67,8 +73,11 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
$log.error(err);
|
$log.error(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$log.debug('Got toAddress:' + addr + ' | ' + item.label)
|
$log.debug('Got toAddress:' + addr + ' | ' + item.label);
|
||||||
return $state.transitionTo('send.amount', { toAddress: addr, toName: item.label})
|
return $state.transitionTo('send.amount', {
|
||||||
|
toAddress: addr,
|
||||||
|
toName: item.label
|
||||||
|
})
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue