show derivation path and created on date for addresses with balance

This commit is contained in:
Kadir Sekha 2018-03-02 14:31:44 +05:00
commit 49836bf329
2 changed files with 12 additions and 1 deletions

View file

@ -47,6 +47,14 @@ angular.module('copayApp.controllers').controller('addressesController', functio
processPaths(withBalance);
$scope.latestUnused = lodash.slice($scope.noBalance, 0, UNUSED_ADDRESS_LIMIT);
var withBalanceDict = lodash.indexBy(withBalance, 'address');
lodash.each(allAddresses, function(a) {
if(withBalanceDict[a.address]) {
withBalanceDict[a.address].createdOn = a.createdOn;
}
});
$scope.latestWithBalance = lodash.slice(withBalance, 0, BALANCE_ADDRESS_LIMIT);
lodash.each(withBalance, function(a) {