@viur/shop-components 0.0.1-dev.23 → 0.0.1-dev.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viur/shop-components",
3
- "version": "0.0.1-dev.23",
3
+ "version": "0.0.1-dev.24",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
@@ -259,12 +259,14 @@ function removeItem(e) {
259
259
  state.currentNode = e.node;
260
260
  }
261
261
 
262
- function onDialogHide() {
262
+ async function onDialogHide() {
263
263
  state.leaves[state.currentNode.key].forEach((item) => {
264
264
  if (item.key === state.currentItem.key) {
265
265
  item.quantity = 1;
266
266
  }
267
267
  });
268
+ // TODO: await updateCart(state.currentNode.key);
269
+
268
270
  state.currentItem = {};
269
271
  state.currentNode = {};
270
272
  }
@@ -48,7 +48,7 @@ export const useCartStore = defineStore("cartstore", () => {
48
48
  parent_cart_key: cartKey,
49
49
  });
50
50
 
51
- await updateCart(cartKey);
51
+ // await updateCart(cartKey);
52
52
  console.log("addToCart", resp); //TODO: Errorhandling as soon as shop module works again
53
53
  }
54
54
 
@@ -78,15 +78,12 @@ export const useCartStore = defineStore("cartstore", () => {
78
78
  quantity_mode: "replace",
79
79
  });
80
80
 
81
- if (quantity === 0) {
82
- await updateCart(cartKey);
83
- }
84
81
  console.log("update Resp", resp); //TODO: Errorhandling as soon as shop module works again
85
82
  }
86
83
 
87
- async function updateCart(cartKey) {
88
- await getChildren(cartKey);
89
- }
84
+ // async function updateCart(cartKey) {
85
+ // await getChildren(cartKey);
86
+ // }
90
87
 
91
88
  async function getAdressStructure() {
92
89
  let addSkel = await shopClient.address_structure();