bring key backup and add bookmark dialog
This commit is contained in:
parent
4ad7d915e5
commit
293edd0d6b
2 changed files with 34 additions and 5 deletions
|
|
@ -339,6 +339,7 @@
|
||||||
</q-form>
|
</q-form>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
<!-- ONBOARDING DIALOG -->
|
||||||
<q-dialog v-model="onboarding.show">
|
<q-dialog v-model="onboarding.show">
|
||||||
<q-card class="q-pa-lg">
|
<q-card class="q-pa-lg">
|
||||||
<h6 class="q-my-md text-primary">How to use Shop</h6>
|
<h6 class="q-my-md text-primary">How to use Shop</h6>
|
||||||
|
|
|
||||||
|
|
@ -103,11 +103,7 @@
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<q-separator></q-separator>
|
<q-separator></q-separator>
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-expansion-item
|
<q-expansion-item group="extras" icon="vpn_key" label="Keys"
|
||||||
v-if="diagonalley"
|
|
||||||
group="extras"
|
|
||||||
icon="vpn_key"
|
|
||||||
label="Keys"
|
|
||||||
><p>
|
><p>
|
||||||
Bellow are the keys needed to contact the merchant. They are
|
Bellow are the keys needed to contact the merchant. They are
|
||||||
stored in the browser!
|
stored in the browser!
|
||||||
|
|
@ -242,6 +238,28 @@
|
||||||
</q-form>
|
</q-form>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
<!-- ONBOARDING DIALOG -->
|
||||||
|
<q-dialog v-model="lnbitsBookmark.show">
|
||||||
|
<q-card class="q-pa-lg">
|
||||||
|
<h6 class="q-my-md text-primary">Bookmark this page</h6>
|
||||||
|
<p>
|
||||||
|
Don't forget to bookmark this page to be able to check on your order!
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
You can backup your keys, and export the page to another device also.
|
||||||
|
</p>
|
||||||
|
<div class="row q-mt-lg">
|
||||||
|
<q-btn
|
||||||
|
v-close-popup
|
||||||
|
flat
|
||||||
|
@click="lnbitsBookmark.finish"
|
||||||
|
color="grey"
|
||||||
|
class="q-ml-auto"
|
||||||
|
>Close</q-btn
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</q-card>
|
||||||
|
</q-dialog>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %} {% block scripts %}
|
{% endblock %} {% block scripts %}
|
||||||
<script src="https://unpkg.com/nostr-tools/lib/nostr.bundle.js"></script>
|
<script src="https://unpkg.com/nostr-tools/lib/nostr.bundle.js"></script>
|
||||||
|
|
@ -262,6 +280,13 @@
|
||||||
mixins: [windowMixin],
|
mixins: [windowMixin],
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
|
lnbitsBookmark: {
|
||||||
|
show: true,
|
||||||
|
finish: () => {
|
||||||
|
this.$q.localStorage.set('lnbits.shopbookmark', false)
|
||||||
|
this.lnbitsBookmark.show = false
|
||||||
|
}
|
||||||
|
},
|
||||||
newMessage: '',
|
newMessage: '',
|
||||||
showMessages: false,
|
showMessages: false,
|
||||||
messages: {},
|
messages: {},
|
||||||
|
|
@ -418,6 +443,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
|
let showBookmark = this.$q.localStorage.getItem('lnbits.shopbookmark')
|
||||||
|
this.lnbitsBookmark.show = showBookmark === true || showBookmark == null
|
||||||
|
|
||||||
let order_details = JSON.parse('{{ order | tojson }}')
|
let order_details = JSON.parse('{{ order | tojson }}')
|
||||||
let products = JSON.parse('{{ products | tojson }}')
|
let products = JSON.parse('{{ products | tojson }}')
|
||||||
let order_id = '{{ order_id }}'
|
let order_id = '{{ order_id }}'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue