+
+
Last transactions
diff --git a/js/controllers/transactions.js b/js/controllers/transactions.js
index 2094c2d4c..52cd13b57 100644
--- a/js/controllers/transactions.js
+++ b/js/controllers/transactions.js
@@ -8,6 +8,9 @@ angular.module('copay.transactions').controller('TransactionsController',
$scope.onlyPending = true;
$scope.lastShowed = false;
+ $scope.txpCurrentPage = 1;
+ $scope.txpItemsPerPage = 4;
+
$scope.update = function () {
$scope.loading = false;
controllerUtils.updateTxs({onlyPending:$scope.onlyPending});
diff --git a/js/filters.js b/js/filters.js
index e726e280b..827df6404 100644
--- a/js/filters.js
+++ b/js/filters.js
@@ -19,4 +19,13 @@ angular.module('copay.filters', [])
return { addr: key, value: dic[key] };
});
};
- });
\ No newline at end of file
+ })
+ .filter('paged', function() {
+ return function(elements, page, pageSize, disable) {
+ if (disable) return elements;
+
+ var from = (page - 1) * pageSize;
+ var to = from + pageSize;
+ return elements.slice(from, to);;
+ };
+ });