feat: publish events for products

This commit is contained in:
Vlad Stan 2023-03-03 11:08:55 +02:00
parent f13d5ec7ff
commit 54978c847f
6 changed files with 117 additions and 24 deletions

View file

@ -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) {