From 1edd2be48052b38e0b38a0c2962a4e0c9558c403 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Wed, 22 Mar 2023 12:35:57 +0000 Subject: [PATCH 1/2] remove key generation on checkout, redirect to login --- static/components/customer-stall/customer-stall.html | 7 +++---- static/components/customer-stall/customer-stall.js | 5 +++++ static/js/market.js | 3 +++ templates/nostrmarket/market.html | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/static/components/customer-stall/customer-stall.html b/static/components/customer-stall/customer-stall.html index a07aef0..02e66bf 100644 --- a/static/components/customer-stall/customer-stall.html +++ b/static/components/customer-stall/customer-stall.html @@ -103,11 +103,10 @@ Generate a new key pair + label="Login" + > diff --git a/static/components/customer-stall/customer-stall.js b/static/components/customer-stall/customer-stall.js index 2f21262..2b4090d 100644 --- a/static/components/customer-stall/customer-stall.js +++ b/static/components/customer-stall/customer-stall.js @@ -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 () { diff --git a/static/js/market.js b/static/js/market.js index 54131f2..5badff1 100644 --- a/static/js/market.js +++ b/static/js/market.js @@ -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({ diff --git a/templates/nostrmarket/market.html b/templates/nostrmarket/market.html index 248fa3b..28cb08a 100644 --- a/templates/nostrmarket/market.html +++ b/templates/nostrmarket/market.html @@ -190,6 +190,7 @@ :relays="relays" :account="account" :pool="pool" + @login-dialog="openAccountDialog" @change-page="navigateTo" > Date: Wed, 22 Mar 2023 12:38:56 +0000 Subject: [PATCH 2/2] remove from checkout list the "generate keys" --- static/components/customer-stall/customer-stall.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/static/components/customer-stall/customer-stall.html b/static/components/customer-stall/customer-stall.html index 02e66bf..60c5a11 100644 --- a/static/components/customer-stall/customer-stall.html +++ b/static/components/customer-stall/customer-stall.html @@ -80,10 +80,6 @@ message)
  • use a Nostr Signer Extension (NIP07)
  • -
  • - generate a key pair to make the order (you should backup up - your keys) -
  • fill out the required fields and with your public key, download the order and send as a direct message to the