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