Fix pagination of history

This commit is contained in:
Gustavo Maximiliano Cortez 2015-02-18 19:34:11 -03:00
parent dddbb27481
commit 18015c300e
2 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,7 @@ angular.module('copayApp.controllers').controller('HistoryController',
$scope.alternativeCurrency = [];
$scope.selectPage = function(page) {
$scope.paging = true;
$scope.currentPage = page;
$scope.update();
};
@ -188,6 +189,7 @@ angular.module('copayApp.controllers').controller('HistoryController',
$scope.totalItems = res.nbItems;
$scope.loading = false;
$scope.paging = false;
setTimeout(function() {
$scope.$digest();
}, 1);

View File

@ -11,7 +11,14 @@
</div>
</div>
</div>
<div class="row" ng-if="blockchain_txs[0].txid">
<div class="row m10b" ng-show="paging">
<div class="large-12 columns">
<div class="panel oh">
<span class="text-gray" translate>Getting transactions...</span>
</div>
</div>
</div>
<div ng-show="!paging" class="row" ng-if="blockchain_txs[0].txid">
<div class="large-12 columns">
<div class="panel oh">
<div ng-repeat="btx in blockchain_txs | orderBy:'-ts'" ng-click="openTxModal(btx)" ng-class="{'line-b':!$last}" class="last-transactions-content">