Merge pull request #24 from lnbits/no_generate_keys_checkout

remove key generation on checkout, redirect to login
This commit is contained in:
Vlad Stan 2023-03-22 15:33:53 +02:00 committed by GitHub
commit a28cae039c
4 changed files with 12 additions and 8 deletions

View file

@ -80,10 +80,6 @@
message)
</li>
<li>use a Nostr Signer Extension (NIP07)</li>
<li>
generate a key pair to make the order (you should backup up
your keys)
</li>
<li>
fill out the required fields and with your public key,
download the order and send as a direct message to the
@ -103,11 +99,10 @@
<q-btn
v-if="!this.account && !this.customerPubkey && !this.customerPrivkey"
unelevated
@click="generateKeyPair"
@click="makeLogin"
color="primary"
label="Generate Keys"
><q-tooltip>Generate a new key pair</q-tooltip></q-btn
>
label="Login"
></q-btn>
</q-card-actions>
</q-card>
</q-expansion-item>

View file

@ -7,6 +7,7 @@ async function customerStall(path) {
props: [
'account',
'login-dialog',
'stall',
'products',
'product-detail',
@ -74,6 +75,10 @@ async function customerStall(path) {
changePageS(page, opts) {
this.$emit('change-page', page, opts)
},
makeLogin() {
this.resetCheckout()
this.$emit('login-dialog')
},
copyText: function (text) {
var notify = this.$q.notify
Quasar.utils.copyToClipboard(text).then(function () {

View file

@ -201,6 +201,9 @@ const market = async () => {
this.accountDialog.data.watchOnly = true
return
},
openAccountDialog() {
this.accountDialog.show = true
},
async updateData(events) {
if (events.length < 1) {
this.$q.notify({

View file

@ -190,6 +190,7 @@
:relays="relays"
:account="account"
:pool="pool"
@login-dialog="openAccountDialog"
@change-page="navigateTo"
></customer-stall>
<customer-market