limit nb of txs

This commit is contained in:
Ivan Socolsky 2016-08-17 17:32:22 -03:00
commit 9423de7179
No known key found for this signature in database
GPG key ID: FAECE6A05FAA4F56

View file

@ -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() {