fix: clear merchant screen on delete
This commit is contained in:
parent
a28cae039c
commit
260bea9ccf
2 changed files with 7 additions and 0 deletions
|
|
@ -59,6 +59,12 @@ const merchant = async () => {
|
||||||
toggleMerchantKeys: function (value) {
|
toggleMerchantKeys: function (value) {
|
||||||
this.showKeys = value
|
this.showKeys = value
|
||||||
},
|
},
|
||||||
|
handleMerchantDeleted: function() {
|
||||||
|
this.merchant = null
|
||||||
|
this.shippingZones = []
|
||||||
|
this.activeChatCustomer = ''
|
||||||
|
this.showKeys = false
|
||||||
|
},
|
||||||
createMerchant: async function (privateKey) {
|
createMerchant: async function (privateKey) {
|
||||||
try {
|
try {
|
||||||
const pubkey = nostr.getPublicKey(privateKey)
|
const pubkey = nostr.getPublicKey(privateKey)
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
:inkey="g.user.wallets[0].inkey"
|
:inkey="g.user.wallets[0].inkey"
|
||||||
:adminkey="g.user.wallets[0].adminkey"
|
:adminkey="g.user.wallets[0].adminkey"
|
||||||
@show-keys="toggleMerchantKeys"
|
@show-keys="toggleMerchantKeys"
|
||||||
|
@merchant-deleted="handleMerchantDeleted"
|
||||||
></merchant-details>
|
></merchant-details>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8"></div>
|
<div class="col-8"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue