feat: publish events for products
This commit is contained in:
parent
f13d5ec7ff
commit
54978c847f
6 changed files with 117 additions and 24 deletions
|
|
@ -190,7 +190,7 @@ async function stallDetails(path) {
|
|||
try {
|
||||
const {data} = await LNbits.api.request(
|
||||
'GET',
|
||||
'/nostrmarket/api/v1/product/' + this.stall.id,
|
||||
'/nostrmarket/api/v1/stall/product/' + this.stall.id,
|
||||
this.inkey
|
||||
)
|
||||
this.products = data
|
||||
|
|
@ -205,12 +205,14 @@ async function stallDetails(path) {
|
|||
stall_id: this.stall.id,
|
||||
id: this.productDialog.data.id,
|
||||
name: this.productDialog.data.name,
|
||||
description: this.productDialog.data.description,
|
||||
categories: this.productDialog.data.categories,
|
||||
|
||||
image: this.productDialog.data.image,
|
||||
price: this.productDialog.data.price,
|
||||
quantity: this.productDialog.data.quantity
|
||||
quantity: this.productDialog.data.quantity,
|
||||
categories: this.productDialog.data.categories,
|
||||
config: {
|
||||
description: this.productDialog.data.description
|
||||
}
|
||||
}
|
||||
this.productDialog.showDialog = false
|
||||
if (this.productDialog.data.id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue