feat: allow to restore all products at once
This commit is contained in:
parent
65b19845d1
commit
d0b2ec1250
3 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue