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
|
<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>
|
||||||
|
|
|
||||||
|
|
@ -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 () {
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue