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) {

View file

@ -80,7 +80,10 @@
<div class="item" ng-repeat="w in latestWithBalance track by $index" copy-to-clipboard="wallet.coin == 'bch' ? (addressType.type == 'cashaddr' ? 'bitcoincash:' : '') + w.translatedAddresses[addressType.type] : w.address">
{{wallet.coin == 'bch' ? w.translatedAddresses[addressType.type] : w.address}}
<div class="addr-balance">{{w.balanceStr}}</div>
<div class="addr-path">
{{w.path}} {{w.createdOn * 1000 | amDateFormat:'MMMM Do YYYY, hh:mm a'}}
</div>
<div class="addr-balance">{{w.balanceStr}}</div>
</div>
</div>