@viur/shop-components 0.0.1-dev.30 → 0.0.1-dev.31
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,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<sl-spinner v-if="!cartKey.length"></sl-spinner>
|
|
3
3
|
<template v-else>
|
|
4
4
|
<sl-dialog ref="confirm" @sl-hide="onDialogHide">
|
|
5
5
|
<p>Möchten Sie den Artikel wirklich aus dem Warenkorb entfernen?</p>
|
|
@@ -248,8 +248,8 @@ async function onConfirm() {
|
|
|
248
248
|
state.currentNode.key,
|
|
249
249
|
0,
|
|
250
250
|
);
|
|
251
|
-
confirm.value.hide();
|
|
252
251
|
await updateCart();
|
|
252
|
+
confirm.value.hide();
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
async function updateItem(e) {
|
|
@@ -275,6 +275,7 @@ function removeItem(e) {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
async function onDialogHide() {
|
|
278
|
+
// TODO: console error when removing items
|
|
278
279
|
state.leaves[state.currentNode.key].forEach((item) => {
|
|
279
280
|
if (item.key === state.currentItem.key) {
|
|
280
281
|
item.quantity = 1;
|
|
@@ -220,11 +220,13 @@
|
|
|
220
220
|
</template>
|
|
221
221
|
|
|
222
222
|
<script setup>
|
|
223
|
-
import { getBoneWidget } from "@viur/vue-utils/bones/edit/index";
|
|
224
223
|
|
|
225
224
|
import { reactive, computed, watch, ref, onBeforeMount } from "vue";
|
|
226
225
|
// import ShippingAdress from "./adress/ShippingAdress.vue";
|
|
227
226
|
import { useCartStore } from "../../../stores/cart";
|
|
227
|
+
import Wrapper_nested from "@viur/vue-utils/bones/edit/wrapper_nested.vue";
|
|
228
|
+
import bone from "@viur/vue-utils/bones/edit/bone.vue";
|
|
229
|
+
import { getBoneWidget } from "@viur/vue-utils/bones/edit/index";
|
|
228
230
|
|
|
229
231
|
const props = defineProps({
|
|
230
232
|
mode: { type: String, default: "form" },
|