@viur/shop-components 0.7.0 → 0.7.2
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 +2 -2
- package/src/shop.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viur/shop-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Frontend Vue components for the shop module of ViUR",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@viur/ignite": "^5.1.2",
|
|
27
27
|
"@viur/shoelace": "^1.0.10-v2.20.0",
|
|
28
|
-
"@viur/vue-utils": "^3.1.
|
|
28
|
+
"@viur/vue-utils": "^3.1.4",
|
|
29
29
|
"@vueuse/core": "^13.1.0",
|
|
30
30
|
"pinia": "^2.3.1",
|
|
31
31
|
"vue": "^3.5.13",
|
package/src/shop.js
CHANGED
|
@@ -74,7 +74,7 @@ export const useViurShopStore = defineStore("viurshopStore", () => {
|
|
|
74
74
|
params:{},
|
|
75
75
|
displayName: "viur.shop.order_step_complete", //Bestellung Abgeschlossen
|
|
76
76
|
icon: { name: "bag-check" },
|
|
77
|
-
active:computed(()=>state.order?.['is_ordered']), // active if ordered
|
|
77
|
+
active:computed(()=>state.order?.['is_ordered'] && state.order?.['is_rts']), // active if ordered
|
|
78
78
|
validating:false,
|
|
79
79
|
valid:false
|
|
80
80
|
},
|
|
@@ -236,7 +236,7 @@ export const useViurShopStore = defineStore("viurshopStore", () => {
|
|
|
236
236
|
state.order = data['skel']
|
|
237
237
|
state.paymentProviderData = data['payment']
|
|
238
238
|
|
|
239
|
-
if(state.order?.['is_ordered']){
|
|
239
|
+
if(state.order?.['is_ordered'] && state.order?.['is_rts']){
|
|
240
240
|
// order is finished
|
|
241
241
|
useTimeoutFn(() => {
|
|
242
242
|
navigateToTab('complete')
|