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 b460defb01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 8 deletions

View file

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

View file

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

View file

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

View file

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