From d0599458c6a134d61e48ebd7c9c36ca100c90134 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Wed, 24 May 2023 13:41:03 +0100 Subject: [PATCH] Format wallet UI tweaks (#1732) * Formatting wallet stuff * Bundle fundle * Added v-if --- lnbits/core/static/js/service-worker.js | 2 +- lnbits/core/static/js/wallet.js | 19 ++++++---------- lnbits/core/templates/core/wallet.html | 15 +++++-------- lnbits/static/bundle.min.js | 2 +- lnbits/static/js/components.js | 30 +++++++++++-------------- 5 files changed, 28 insertions(+), 40 deletions(-) diff --git a/lnbits/core/static/js/service-worker.js b/lnbits/core/static/js/service-worker.js index e3a008f29..5f069fc5c 100644 --- a/lnbits/core/static/js/service-worker.js +++ b/lnbits/core/static/js/service-worker.js @@ -1,6 +1,6 @@ // update cache version every time there is a new deployment // so the service worker reinitializes the cache -const CACHE_VERSION = 20 +const CACHE_VERSION = 28 const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-` const getApiKey = request => { diff --git a/lnbits/core/static/js/wallet.js b/lnbits/core/static/js/wallet.js index 585b1dc78..8a349cfb2 100644 --- a/lnbits/core/static/js/wallet.js +++ b/lnbits/core/static/js/wallet.js @@ -145,12 +145,6 @@ new Vue({ payments: [], paymentsTable: { columns: [ - { - name: 'memo', - align: 'left', - label: this.$t('memo'), - field: 'memo' - }, { name: 'time', align: 'left', @@ -158,18 +152,19 @@ new Vue({ field: 'date', sortable: true }, + { + name: 'memo', + align: 'left', + label: this.$t('memo'), + field: 'date', + sortable: true + }, { name: 'amount', align: 'right', label: this.$t('amount') + ' (' + LNBITS_DENOMINATION + ')', field: 'sat', sortable: true - }, - { - name: 'fee', - align: 'right', - label: this.$t('fee') + ' (m' + LNBITS_DENOMINATION + ')', - field: 'fee' } ], pagination: { diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index d60da39d4..19c7cf15d 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -149,7 +149,6 @@ {% raw %}