remove key generation on checkout, redirect to login
This commit is contained in:
parent
b1b5c7f21d
commit
1edd2be480
4 changed files with 12 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@
|
|||
:relays="relays"
|
||||
:account="account"
|
||||
:pool="pool"
|
||||
@login-dialog="openAccountDialog"
|
||||
@change-page="navigateTo"
|
||||
></customer-stall>
|
||||
<customer-market
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue