add open button

This commit is contained in:
arcbtc 2025-12-30 12:48:43 +00:00
commit 94af43c3f5
2 changed files with 16 additions and 1 deletions

View file

@ -31,8 +31,14 @@ window.app.component('merchant-tab', {
}, },
computed: { computed: {
marketClientUrl: function () { marketClientUrl: function () {
if (!this.publicKey) {
return '/nostrmarket/market' return '/nostrmarket/market'
} }
const url = new URL('/nostrmarket/market', window.location.origin)
url.searchParams.set('merchant', this.publicKey)
return url.pathname + url.search
}
}, },
methods: { methods: {
publishProfile: async function () { publishProfile: async function () {

View file

@ -142,6 +142,15 @@
</q-item> </q-item>
</q-list> </q-list>
</q-btn-dropdown> </q-btn-dropdown>
<q-btn
outline
color="primary"
icon="storefront"
label="Marketplace"
:href="marketClientUrl"
target="_blank"
rel="noopener"
></q-btn>
</div> </div>
</q-card-section> </q-card-section>