disclaimer

This commit is contained in:
callebtc 2022-11-05 06:36:32 +01:00
parent e86d8719c3
commit 3749b172f4

View File

@ -181,8 +181,18 @@ page_container %}
</q-tab-panels> </q-tab-panels>
</q-card-section> </q-card-section>
</q-card> </q-card>
<div>
<q-btn class="gt-sm"
size="16px"
icon="warning"
rectangle
color="warning"
outline
class="full-width"
@click="showDisclaimerDialog"></q-btn>
</div>
</div> </div>
<q-tabs <q-tabs
class="lt-md fixed-bottom left-0 right-0 bg-primary text-white shadow-2 z-top" class="lt-md fixed-bottom left-0 right-0 bg-primary text-white shadow-2 z-top"
active-class="px-0" active-class="px-0"
@ -423,19 +433,21 @@ page_container %}
<q-card class="q-pa-lg"> <q-card class="q-pa-lg">
<h6 class="q-my-md text-primary">Warning</h6> <h6 class="q-my-md text-primary">Warning</h6>
<p> <p>
<strong <strong>Bookmark this page!</strong>
>BOOKMARK THIS PAGE! If only mobile you can also click the 3 dots
and "Save to homescreen"/"Install app"</strong
>!
</p> </p>
<p> <p>
Ecash is a bearer asset, meaning you have the funds saved on this Ecash is a bearer asset, meaning losing access to this wallet will mean you will
page, losing the page without exporting the page will mean you will lose the funds. This wallet stores tokens in its database. If you lose the link or request
lose the funds. your data, you will lose your tokens. Bookmark this page or press the
hamburger icon and add this page to your home screen.
</p>
<p>
This service is in BETA, and we hold no responsibility for people losing
access to funds. Use at your own risk!
</p> </p>
<div class="row q-mt-lg"> <div class="row q-mt-lg">
<q-btn outline color="grey">Copy wallet URL</q-btn> <q-btn outline color="grey" @click="copyText(disclaimerDialog.location.href)">Copy wallet URL</q-btn>
<q-btn v-close-popup flat color="grey" class="q-ml-auto" <q-btn v-close-popup flat color="grey" class="q-ml-auto"
>I understand</q-btn >I understand</q-btn
> >
</div> </div>
@ -489,14 +501,6 @@ page_container %}
color="primary" color="primary"
>Copy invoice</q-btn >Copy invoice</q-btn
> >
<!-- <q-btn
v-if="invoiceData.bolt11"
@click="recheckInvoice(invoiceData.hash)"
outline
color="primary"
>
Recheck
</q-btn> -->
<q-btn v-else outline color="primary" @click="requestMintButton" <q-btn v-else outline color="primary" @click="requestMintButton"
>Create Invoice</q-btn >Create Invoice</q-btn
> >
@ -578,7 +582,7 @@ page_container %}
<div> <div>
<div class="row items-center no-wrap q-mb-sm"> <div class="row items-center no-wrap q-mb-sm">
<div class="col-12"> <div class="col-12">
<span class="text-subtitle1">Paste tokens please</span> <span class="text-subtitle1">Paste Cashu tokens</span>
</div> </div>
</div> </div>
<q-input <q-input
@ -602,56 +606,6 @@ page_container %}
</div> </div>
</q-card> </q-card>
</q-dialog> </q-dialog>
<!--
<q-dialog v-model="showPayInvoice" position="top">
<q-card class="q-pa-lg q-pt-xl lnbits__dialog-card">
<div v-if="!payInvoiceData.invoice">
<div class="row items-center no-wrap q-mb-sm">
<div class="col-12">
<span class="text-subtitle1"
>Please paste a Lightning invoice</span
>
</div>
</div>
<q-input
filled
dense
v-model="payInvoiceData.data.request"
label="Paste invoice"
autofocus
type="textarea"
class="q-mb-lg"
></q-input>
</div>
<div v-else class="q-mb-lg">
{% raw %}
<strong>Amount:</strong> {{ payInvoiceData.invoice.sat }}
<strong>sats</strong><br />
<strong>Description:</strong> {{ payInvoiceData.invoice.description
}}<br />
<strong>Expire date:</strong> {{ payInvoiceData.invoice.expireDate
}}<br />
<strong>Expired:</strong> {{ payInvoiceData.invoice.expired }}<br />
<strong>Hash:</strong> {{ payInvoiceData.invoice.hash }} {% endraw
%}
</div>
<div class="row q-mt-lg">
<q-btn
v-if="!payInvoiceData.invoice"
@click="checkInvoice"
outline
color="grey"
>Continue</q-btn
>
<q-btn v-else outline color="primary" @click="melt"
>Pay invoice</q-btn
>
<q-btn v-close-popup flat color="grey" class="q-ml-auto"
>Close</q-btn
>
</div>
</q-card>
</q-dialog> -->
</div> </div>
</q-page> </q-page>
</q-page-container> </q-page-container>
@ -967,6 +921,9 @@ page_container %}
this.payInvoiceData.camera.show = false this.payInvoiceData.camera.show = false
this.focusInput('pasteInput') this.focusInput('pasteInput')
}, },
showDisclaimerDialog: function() {
this.disclaimerDialog.show = true
},
closeReceiveDialog: function () { closeReceiveDialog: function () {
setTimeout(() => { setTimeout(() => {