mirror of https://github.com/BTCPrivate/copay.git
Fix pagination of history
This commit is contained in:
parent
dddbb27481
commit
18015c300e
|
@ -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);
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue