remove key generation on checkout, redirect to login

This commit is contained in:
Tiago Vasconcelos 2023-03-22 12:35:57 +00:00
parent b1b5c7f21d
commit 1edd2be480
4 changed files with 12 additions and 4 deletions

View file

@ -103,11 +103,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