add open button
This commit is contained in:
parent
216b53cb31
commit
94af43c3f5
2 changed files with 16 additions and 1 deletions
|
|
@ -31,8 +31,14 @@ window.app.component('merchant-tab', {
|
|||
},
|
||||
computed: {
|
||||
marketClientUrl: function () {
|
||||
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: {
|
||||
publishProfile: async function () {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue