feat: allow to restore all products at once

This commit is contained in:
Vlad Stan 2023-07-13 14:44:39 +03:00
parent 65b19845d1
commit d0b2ec1250
3 changed files with 9 additions and 1 deletions

View file

@ -318,6 +318,12 @@ async function stallDetails(path) {
pendingProduct.pending = true
await this.showNewProductDialog(pendingProduct)
},
restoreAllPendingProducts: async function () {
for (const p of this.pendingProducts){
p.pending = false
await this.updateProduct(p)
}
},
customerSelectedForOrder: function (customerPubkey) {
this.$emit('customer-selected-for-order', customerPubkey)
}