@viur/shop-components 0.7.1 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  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.1",
3
+ "version": "0.7.2",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
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')