diff --git a/lnbits/core/static/js/wallet.js b/lnbits/core/static/js/wallet.js index 4f602fa0..27e28ed2 100644 --- a/lnbits/core/static/js/wallet.js +++ b/lnbits/core/static/js/wallet.js @@ -133,7 +133,8 @@ new Vue({ ], pagination: { rowsPerPage: 10 - } + }, + filter: null }, paymentsChart: { show: false @@ -141,6 +142,12 @@ new Vue({ }; }, computed: { + filteredPayments: function () { + var q = this.paymentsTable.filter; + if (!q || q == '') return this.payments; + + return LNbits.utils.search(this.payments, q); + }, balance: function () { if (this.payments.length) { return _.pluck(this.payments, 'amount').reduce(function (a, b) { return a + b; }, 0) / 1000; diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index f205b6d0..1ff3f58f 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -49,7 +49,7 @@ -
+
Transactions
@@ -63,8 +63,12 @@
+ + @@ -160,8 +164,8 @@
- -
+ +