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:
commit
a93a48dc60
3 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue