contentoh-components-library 21.5.6 → 21.5.8
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.
|
@@ -228,6 +228,14 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
228
228
|
changeImageBtn: changeImageBtn,
|
|
229
229
|
showDivState: showDivStates,
|
|
230
230
|
imageStates: imageStates
|
|
231
|
+
}), (input.id === 44186 || input.id === 44187) && (input === null || input === void 0 ? void 0 : input.isApproved) && /*#__PURE__*/(0, _jsxRuntime.jsx)(InputReviewSection, {
|
|
232
|
+
inputId: input === null || input === void 0 ? void 0 : input.id,
|
|
233
|
+
isApproved: !(input !== null && input !== void 0 && input.isApproved),
|
|
234
|
+
comment: input === null || input === void 0 ? void 0 : input.comment,
|
|
235
|
+
handleImgClick: handleImgClick,
|
|
236
|
+
changeImageBtn: changeImageBtn,
|
|
237
|
+
showDivState: showDivStates,
|
|
238
|
+
imageStates: imageStates
|
|
231
239
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
232
240
|
inputId: input.id,
|
|
233
241
|
index: index,
|
|
@@ -1225,11 +1225,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
dataObject.articleData = dataObject.articleData.map(function (item) {
|
|
1227
1227
|
var attributeId = item.attributeId;
|
|
1228
|
-
|
|
1229
|
-
|
|
1228
|
+
|
|
1229
|
+
if (approvedInputs.hasOwnProperty(attributeId)) {
|
|
1230
1230
|
item.isApproved = true;
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1232
|
+
|
|
1233
|
+
return item;
|
|
1233
1234
|
});
|
|
1234
1235
|
if (product !== null && product !== void 0 && product.orderId) dataObject["orderId"] = product === null || product === void 0 ? void 0 : product.orderId;
|
|
1235
1236
|
console.log("dataObject", dataObject);
|
package/package.json
CHANGED
|
@@ -247,6 +247,17 @@ export const InputGroup = ({
|
|
|
247
247
|
imageStates={imageStates}
|
|
248
248
|
/>
|
|
249
249
|
)}
|
|
250
|
+
{(input.id===44186||input.id===44187)&&input?.isApproved && (
|
|
251
|
+
<InputReviewSection
|
|
252
|
+
inputId={input?.id}
|
|
253
|
+
isApproved={!input?.isApproved}
|
|
254
|
+
comment={input?.comment}
|
|
255
|
+
handleImgClick={handleImgClick}
|
|
256
|
+
changeImageBtn={changeImageBtn}
|
|
257
|
+
showDivState={showDivStates}
|
|
258
|
+
imageStates={imageStates}
|
|
259
|
+
/>
|
|
260
|
+
)}
|
|
250
261
|
<TagAndInput
|
|
251
262
|
key={index + "-" + input?.value + "-" + compare}
|
|
252
263
|
inputId={input.id}
|
|
@@ -701,10 +701,9 @@ export const ProviderProductEdition = ({
|
|
|
701
701
|
};
|
|
702
702
|
dataObject.articleData = dataObject.articleData.map((item) => {
|
|
703
703
|
const attributeId = item.attributeId;
|
|
704
|
-
|
|
705
|
-
/**if (approvedInputs.hasOwnProperty(attributeId)) {
|
|
704
|
+
if (approvedInputs.hasOwnProperty(attributeId)) {
|
|
706
705
|
item.isApproved = true;
|
|
707
|
-
}
|
|
706
|
+
}
|
|
708
707
|
return item;
|
|
709
708
|
});
|
|
710
709
|
|