fix refresh list

This commit is contained in:
Javier 2016-11-17 11:58:02 -03:00
commit 84a49cd239
2 changed files with 3 additions and 7 deletions

View file

@ -74,11 +74,11 @@ angular.module('copayApp.controllers').controller('addressesController', functio
if (err) return popupService.showAlert(gettextCatalog.getString('Error'), err);
if (addr != _addr[0].address) return popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('New address could not be generated. Please try again.'));
$scope.viewAll = {
value: [_addr[0]].concat($scope.latestUnused).length > UNUSED_ADDRESS_LIMIT
};
$scope.noBalance.concat(_addr[0]);
$scope.noBalance = [_addr[0]].concat($scope.noBalance);
$scope.latestUnused = lodash.slice($scope.noBalance, 0, UNUSED_ADDRESS_LIMIT);
$scope.viewAll = {
value: $scope.noBalance.length > UNUSED_ADDRESS_LIMIT
};
$scope.$digest();
});
});

View file

@ -38,10 +38,6 @@
</div>
</div>
<div ng-if="!latestUnused[0]">
<span class="item" translate>Not unused addresses available</span>
</div>
<div ng-if="latestWithBalance[0]">
<div class="item item-divider" translate>
Addresses With Balance