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,7 +31,13 @@ window.app.component('merchant-tab', {
},
computed: {
marketClientUrl: function () {
return '/nostrmarket/market'
if (!this.publicKey) {
return '/nostrmarket/market'
}
const url = new URL('/nostrmarket/market', window.location.origin)
url.searchParams.set('merchant', this.publicKey)
return url.pathname + url.search
}
},
methods: {

View file

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