contentoh-components-library 21.5.75 → 21.5.77
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/dist/components/pages/RetailerProductEdition/context/reducers/product.js +0 -3
- package/dist/components/pages/RetailerProductEdition/index.js +1 -1
- package/package.json +1 -1
- package/src/components/pages/RetailerProductEdition/context/reducers/product.js +0 -3
- package/src/components/pages/RetailerProductEdition/index.js +1 -1
|
@@ -64,7 +64,6 @@ var productReducer = function productReducer(state, action) {
|
|
|
64
64
|
|
|
65
65
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
66
66
|
product: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state.product), {}, {
|
|
67
|
-
description_status: action.payload,
|
|
68
67
|
statusByRetailer: (((_state$product = state.product) === null || _state$product === void 0 ? void 0 : _state$product.statusByRetailer) || []).map(function (retailerStatus) {
|
|
69
68
|
return retailerStatus.service === "description" ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, retailerStatus), {}, {
|
|
70
69
|
status: action.payload
|
|
@@ -80,7 +79,6 @@ var productReducer = function productReducer(state, action) {
|
|
|
80
79
|
|
|
81
80
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
82
81
|
product: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state.product), {}, {
|
|
83
|
-
datasheet_status: action.payload,
|
|
84
82
|
statusByRetailer: (((_state$product2 = state.product) === null || _state$product2 === void 0 ? void 0 : _state$product2.statusByRetailer) || []).map(function (retailerStatus) {
|
|
85
83
|
return retailerStatus.service === "datasheet" ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, retailerStatus), {}, {
|
|
86
84
|
status: action.payload
|
|
@@ -96,7 +94,6 @@ var productReducer = function productReducer(state, action) {
|
|
|
96
94
|
|
|
97
95
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
98
96
|
product: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state.product), {}, {
|
|
99
|
-
images_status: action.payload,
|
|
100
97
|
statusByRetailer: (((_state$product3 = state.product) === null || _state$product3 === void 0 ? void 0 : _state$product3.statusByRetailer) || []).map(function (retailerStatus) {
|
|
101
98
|
return retailerStatus.service === "images" ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, retailerStatus), {}, {
|
|
102
99
|
status: action.payload
|
|
@@ -913,7 +913,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
913
913
|
type: "SET_SAVING",
|
|
914
914
|
payload: true
|
|
915
915
|
});
|
|
916
|
-
concept = (
|
|
916
|
+
concept = getStatusByCurrentServiceAndRetailer();
|
|
917
917
|
articleId = state.product.id_article;
|
|
918
918
|
orderId = (_state$product$id_ord = state.product.id_order) !== null && _state$product$id_ord !== void 0 ? _state$product$id_ord : state.product.orderId;
|
|
919
919
|
sectionStatusKey = "".concat(concept, "_status");
|
package/package.json
CHANGED
|
@@ -52,7 +52,6 @@ export const productReducer = (state, action) => {
|
|
|
52
52
|
...state,
|
|
53
53
|
product: {
|
|
54
54
|
...state.product,
|
|
55
|
-
description_status: action.payload,
|
|
56
55
|
statusByRetailer: (state.product?.statusByRetailer || []).map(
|
|
57
56
|
(retailerStatus) =>
|
|
58
57
|
retailerStatus.service === "description"
|
|
@@ -68,7 +67,6 @@ export const productReducer = (state, action) => {
|
|
|
68
67
|
...state,
|
|
69
68
|
product: {
|
|
70
69
|
...state.product,
|
|
71
|
-
datasheet_status: action.payload,
|
|
72
70
|
statusByRetailer: (state.product?.statusByRetailer || []).map(
|
|
73
71
|
(retailerStatus) =>
|
|
74
72
|
retailerStatus.service === "datasheet"
|
|
@@ -84,7 +82,6 @@ export const productReducer = (state, action) => {
|
|
|
84
82
|
...state,
|
|
85
83
|
product: {
|
|
86
84
|
...state.product,
|
|
87
|
-
images_status: action.payload,
|
|
88
85
|
statusByRetailer: (state.product?.statusByRetailer || []).map(
|
|
89
86
|
(retailerStatus) =>
|
|
90
87
|
retailerStatus.service === "images"
|
|
@@ -680,7 +680,7 @@ const RetailerProductEditionView = ({
|
|
|
680
680
|
if (state.saving) return;
|
|
681
681
|
dispatch({ type: "SET_SAVING", payload: true });
|
|
682
682
|
|
|
683
|
-
const concept =
|
|
683
|
+
const concept = getStatusByCurrentServiceAndRetailer();
|
|
684
684
|
const articleId = state.product.id_article;
|
|
685
685
|
const orderId = state.product.id_order ?? state.product.orderId;
|
|
686
686
|
const sectionStatusKey = `${concept}_status`;
|