oa-componentbook 1.0.1-stage.94 → 1.0.1-stage.95
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.
|
@@ -128,7 +128,7 @@ function ApprovalWidget(_ref) {
|
|
|
128
128
|
"data-test": dataTest ? "".concat(dataTest, "--upload-download-widget") : undefined
|
|
129
129
|
}, docDetails, {
|
|
130
130
|
formName: isMandatory ? "file-".concat(questionId) : undefined
|
|
131
|
-
})))), children, viewOnClick && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
131
|
+
})))), children && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children), viewOnClick && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
132
132
|
className: "view-button",
|
|
133
133
|
"data-test": dataTest ? "".concat(dataTest, "--view-button") : undefined,
|
|
134
134
|
onClick: () => viewOnClick(questionId),
|
|
@@ -243,7 +243,7 @@ function ApprovalWidget(_ref) {
|
|
|
243
243
|
disabled: (_approvalForm$disable6 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable6 !== void 0 ? _approvalForm$disable6 : false
|
|
244
244
|
})))), actionRenderType === "buttonWithForm" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
|
|
245
245
|
validateStatus: form.getFieldError("validateDocumentButton#".concat(questionId)) ? "error" : "",
|
|
246
|
-
help: form.getFieldError("validateDocumentButton#".concat(questionId)) || ""
|
|
246
|
+
help: form.getFieldError("validateDocumentButton#".concat(questionId)) || "errorForRtv"
|
|
247
247
|
}, getFieldDecorator("validateDocumentButton#".concat(questionId), {
|
|
248
248
|
rules: isMandatory ? [{
|
|
249
249
|
required: true,
|