orderiom-api-package 0.3.51 → 0.3.52
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/restaurant.js +14 -2
package/package.json
CHANGED
|
@@ -11,7 +11,8 @@ const state = () => ({
|
|
|
11
11
|
testimonials: [],
|
|
12
12
|
fetchingRestaurantInfo: false,
|
|
13
13
|
fetchingBlogs: false,
|
|
14
|
-
reservedTables:[]
|
|
14
|
+
reservedTables:[],
|
|
15
|
+
LegalContent:[]
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
const mutations = {
|
|
@@ -53,7 +54,10 @@ const mutations = {
|
|
|
53
54
|
},
|
|
54
55
|
finishFetchingBlogs(state){
|
|
55
56
|
state.fetchingBlogs = false;
|
|
56
|
-
}
|
|
57
|
+
},
|
|
58
|
+
setLegalContent(state , data){
|
|
59
|
+
state.LegalContent = data;
|
|
60
|
+
}
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
const actions = {
|
|
@@ -233,6 +237,14 @@ const actions = {
|
|
|
233
237
|
return commonErrorCallback()(error);
|
|
234
238
|
})
|
|
235
239
|
},
|
|
240
|
+
getLegalContent({commit} , restaurantId){
|
|
241
|
+
return $http.get('api/restaurant/informationPages',{params:{restaurantId}}).then(res=>{
|
|
242
|
+
commit('setLegalContent',res.data.data.information_pages)
|
|
243
|
+
}).catch(error => {
|
|
244
|
+
commit('setRestaurants', [])
|
|
245
|
+
return commonErrorCallback()(error);
|
|
246
|
+
})
|
|
247
|
+
}
|
|
236
248
|
}
|
|
237
249
|
export default {
|
|
238
250
|
namespaced: true,
|