orderiom-api-package 0.4.16 → 0.4.17
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 +1 -1
- package/src/modules/product.js +4 -4
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -67,7 +67,7 @@ const getters = {
|
|
|
67
67
|
: getters.deliveryType === 'here'
|
|
68
68
|
? 'hereTimes'
|
|
69
69
|
: 'restaurantTakeawayTimes';
|
|
70
|
-
return rootState.restaurantInfo[property] || [];
|
|
70
|
+
return rootState.orderiomApiPackage.restaurant.restaurantInfo[property] || [];
|
|
71
71
|
},
|
|
72
72
|
disabledDates(state, getters){
|
|
73
73
|
const allowedWeekDays = Array.from(new Set(
|
|
@@ -535,9 +535,9 @@ const actions = {
|
|
|
535
535
|
if(!dt) return null;
|
|
536
536
|
|
|
537
537
|
const result = new Date();
|
|
538
|
-
const closedToday = rootState.restaurantInfo ? rootState.restaurantInfo.closed : false;
|
|
538
|
+
const closedToday = rootState.orderiomApiPackage.restaurant.restaurantInfo ? rootState.orderiomApiPackage.restaurant.restaurantInfo.closed : false;
|
|
539
539
|
const minHour =
|
|
540
|
-
result.getHours() + Number(rootState.restaurantInfo[`${dt}_hours`] || 0);
|
|
540
|
+
result.getHours() + Number(rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_hours`] || 0);
|
|
541
541
|
const isTomorrow = closedToday && minHour < 24;
|
|
542
542
|
result.setHours(
|
|
543
543
|
isTomorrow ? 24 : minHour,
|
|
@@ -552,7 +552,7 @@ const actions = {
|
|
|
552
552
|
const dt = deliveryType ? deliveryType : deliveryCodeToName(state.basketInfo.deliveryType)
|
|
553
553
|
if(!dt) return null;
|
|
554
554
|
|
|
555
|
-
const ad = rootState.restaurantInfo[`${dt}_available_days`];
|
|
555
|
+
const ad = rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_available_days`];
|
|
556
556
|
if(!ad) return null;
|
|
557
557
|
|
|
558
558
|
const result = new Date();
|