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" >