diff --git a/public/views/walletHome.html b/public/views/walletHome.html index d62f1c9df..1f2c3f697 100644 --- a/public/views/walletHome.html +++ b/public/views/walletHome.html @@ -195,9 +195,9 @@ -
+ class="row collapse last-transactions-content">
sync diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 3d301b4b5..05e7b4980 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -916,6 +916,17 @@ angular.module('copayApp.controllers').controller('indexController', function($r }, 100); }; + self.filter = function(search) { + if (lodash.isEmpty(search)) return self.txHistory; + var result = lodash.filter(self.txHistory, function(tx) { + return lodash.includes(tx.amountStr, search) || + lodash.includes(tx.message, search) || + lodash.includes(self.addressbook[tx.addressTo], search) || + lodash.includes(tx.addressTo, search); + }); + return result; + } + self.getTxsFromServer = function(client, skip, endingTxid, limit, cb) { var res = [];