From 9423de71798caef9f8556a388a65c247f70b27a6 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 17 Aug 2016 17:32:22 -0300 Subject: [PATCH] limit nb of txs --- src/js/services/walletService.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/services/walletService.js b/src/js/services/walletService.js index d7ecc5709..43c55ac1f 100644 --- a/src/js/services/walletService.js +++ b/src/js/services/walletService.js @@ -10,6 +10,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim var root = {}; root.SOFT_CONFIRMATION_LIMIT = 12; + root.HISTORY_SHOW_LIMIT = 10; // UI Related root.openStatusModal = function(type, txp, cb) { @@ -693,9 +694,9 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim // TODO wallet.isSearching = false; - wallet.nextTxHistory = wallet.historyShowMoreLimit; - wallet.txHistory = wallet.completeHistory ? wallet.completeHistory.slice(0, wallet.historyShowLimit) : null; - wallet.historyShowMore = wallet.completeHistory ? wallet.completeHistory.length > wallet.historyShowLimit : null; + wallet.nextTxHistory = root.HISTORY_SHOW_LIMIT; + wallet.txHistory = wallet.completeHistory ? wallet.completeHistory.slice(0, root.HISTORY_SHOW_LIMIT) : null; + wallet.historyShowMore = wallet.completeHistory ? wallet.completeHistory.length > root.HISTORY_SHOW_LIMIT : null; }; root.debounceUpdateHistory = lodash.debounce(function() {