From 98891b7680329d3caf4531a6cb736cf7cf35766e Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Tue, 17 May 2022 12:16:41 +0100 Subject: [PATCH] get bookmark promp fired on new wallet --- lnbits/core/static/js/wallet.js | 5 +---- lnbits/core/templates/core/wallet.html | 13 ++++++------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/lnbits/core/static/js/wallet.js b/lnbits/core/static/js/wallet.js index f872ad09..29a1025d 100644 --- a/lnbits/core/static/js/wallet.js +++ b/lnbits/core/static/js/wallet.js @@ -691,10 +691,7 @@ new Vue({ }, mounted: function () { // show disclaimer - if ( - this.$refs.disclaimer && - !this.$q.localStorage.getItem('lnbits.disclaimerShown') - ) { + if (!this.$q.localStorage.getItem('lnbits.disclaimerShown')) { this.disclaimerDialog.show = true this.$q.localStorage.set('lnbits.disclaimerShown', true) } diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index e9c6e496..9453e1bf 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -706,8 +706,7 @@ - {% if service_fee > 0 %} -
+
Warning
@@ -720,10 +719,10 @@

This service is in BETA, and we hold no responsibility for people losing - access to funds. To encourage you to run your own LNbits installation, - any balance on {% raw %}{{ disclaimerDialog.location.host }}{% endraw %} - will incur a charge of - {{ service_fee }}% service fee per week. + access to funds. {% if service_fee > 0 %} To encourage you to run your + own LNbits installation, any balance on {% raw %}{{ + disclaimerDialog.location.host }}{% endraw %} will incur a charge of + {{ service_fee }}% service fee per week. {% endif %}

- {% endif %} {% endblock %} + {% endblock %}