From 357f99675f964eb7178c343f4953279c6333195d Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 14 Jul 2023 11:39:05 +0300 Subject: [PATCH] fix: navigation --- static/js/market.js | 3 ++- templates/nostrmarket/market.html | 24 ++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/static/js/market.js b/static/js/market.js index cb13893..d04d2fa 100644 --- a/static/js/market.js +++ b/static/js/market.js @@ -509,6 +509,7 @@ const market = async () => { if (page === 'stall' || page === 'product') { if (stall) { this.activeStall = stall + this.setActivePage('customer-stall') url.searchParams.set('stall_id', stall) this.activeProduct = product @@ -528,7 +529,7 @@ const market = async () => { } window.history.pushState({}, '', url) - this.activePage = page + // this.activePage = page }, copyText: function (text) { var notify = this.$q.notify diff --git a/templates/nostrmarket/market.html b/templates/nostrmarket/market.html index 07068af..77f0b70 100644 --- a/templates/nostrmarket/market.html +++ b/templates/nostrmarket/market.html @@ -237,11 +237,11 @@ - - + + + + + + + - +