Merge pull request #50 from ssotomayor/fixes1592

New addresses are now added at bottom of the list instead of at the top
This commit is contained in:
Matias Alejo Garcia 2014-10-29 14:56:59 -03:00
commit a93a48dc60
3 changed files with 4 additions and 3 deletions

View file

@ -84,6 +84,7 @@ angular.module('copayApp.controllers').controller('AddressesController',
for (var i = 0; i < addrInfos.length; i++) {
var addrinfo = addrInfos[i];
$scope.addresses.push({
'index': i,
'address': addrinfo.addressStr,
'balance': $rootScope.balanceByAddr ? $rootScope.balanceByAddr[addrinfo.addressStr] : 0,
'isChange': addrinfo.isChange,

View file

@ -493,7 +493,7 @@ PublicKeyRing.prototype.getAddressesInfoForIndex = function(index, opts, copayer
var isOwned = index.copayerIndex === HDPath.SHARED_INDEX || index.copayerIndex === copayerIndex;
var ret = [];
var appendAddressInfo = function(address, isChange) {
ret.unshift({
ret.push({
address: address,
addressStr: address.toString(),
isChange: isChange,