oa-componentbook 1.0.1-stage.66 → 1.0.1-stage.67
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.
|
@@ -209,23 +209,11 @@ function ApprovalWidget(_ref) {
|
|
|
209
209
|
}, /*#__PURE__*/_react.default.createElement(_antd.Input.TextArea, {
|
|
210
210
|
"data-test": dataTest ? "".concat(dataTest, "--remarks") : undefined,
|
|
211
211
|
disabled: (_approvalForm$disable4 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable4 !== void 0 ? _approvalForm$disable4 : false
|
|
212
|
-
})))), actionRenderType === "buttonWithForm" &&
|
|
213
|
-
|
|
214
|
-
// <Form.Item
|
|
215
|
-
// name={`validateDocumentButton#${questionId}`}
|
|
216
|
-
// rules={
|
|
217
|
-
// isMandatory
|
|
218
|
-
// ? [{ required: true, message: "Reason is required" }]
|
|
219
|
-
// : []
|
|
220
|
-
// }
|
|
221
|
-
// >
|
|
222
|
-
//
|
|
223
|
-
// </Form.Item>
|
|
224
|
-
_react.default.createElement(_antd.Form.Item, null, getFieldDecorator("validateDocumentButton#".concat(questionId), {
|
|
225
|
-
rules: [{
|
|
212
|
+
})))), actionRenderType === "buttonWithForm" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, null, getFieldDecorator("validateDocumentButton#".concat(questionId), {
|
|
213
|
+
rules: isMandatory ? [{
|
|
226
214
|
required: true,
|
|
227
215
|
message: "This field is required"
|
|
228
|
-
}]
|
|
216
|
+
}] : []
|
|
229
217
|
})( /*#__PURE__*/_react.default.createElement(_CustomButton.default, actionContent)))) || undefined), hasDivider && /*#__PURE__*/_react.default.createElement(_antd.Divider, null));
|
|
230
218
|
}
|
|
231
219
|
ApprovalWidget.propTypes = {
|