Merge pull request #624 from talvasconcelos/fix/bookmarkPrompt

get bookmark promp fired on new wallet
This commit is contained in:
Arc
2022-05-17 14:15:43 +01:00
committed by GitHub
2 changed files with 7 additions and 11 deletions

View File

@ -691,10 +691,7 @@ new Vue({
}, },
mounted: function () { mounted: function () {
// show disclaimer // show disclaimer
if ( if (!this.$q.localStorage.getItem('lnbits.disclaimerShown')) {
this.$refs.disclaimer &&
!this.$q.localStorage.getItem('lnbits.disclaimerShown')
) {
this.disclaimerDialog.show = true this.disclaimerDialog.show = true
this.$q.localStorage.set('lnbits.disclaimerShown', true) this.$q.localStorage.set('lnbits.disclaimerShown', true)
} }

View File

@ -706,8 +706,7 @@
<q-tab icon="photo_camera" label="Scan" @click="showCamera"> </q-tab> <q-tab icon="photo_camera" label="Scan" @click="showCamera"> </q-tab>
</q-tabs> </q-tabs>
{% if service_fee > 0 %}
<div ref="disclaimer"></div>
<q-dialog v-model="disclaimerDialog.show"> <q-dialog v-model="disclaimerDialog.show">
<q-card class="q-pa-lg"> <q-card class="q-pa-lg">
<h6 class="q-my-md text-deep-purple">Warning</h6> <h6 class="q-my-md text-deep-purple">Warning</h6>
@ -720,10 +719,10 @@
</p> </p>
<p> <p>
This service is in BETA, and we hold no responsibility for people losing 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, access to funds. {% if service_fee > 0 %} To encourage you to run your
any balance on {% raw %}{{ disclaimerDialog.location.host }}{% endraw %} own LNbits installation, any balance on {% raw %}{{
will incur a charge of disclaimerDialog.location.host }}{% endraw %} will incur a charge of
<strong>{{ service_fee }}% service fee</strong> per week. <strong>{{ service_fee }}% service fee</strong> per week. {% endif %}
</p> </p>
<div class="row q-mt-lg"> <div class="row q-mt-lg">
<q-btn <q-btn
@ -738,5 +737,5 @@
</div> </div>
</q-card> </q-card>
</q-dialog> </q-dialog>
{% endif %} {% endblock %} {% endblock %}
</div> </div>