@rh-support/troubleshoot 0.2.90 → 0.2.91
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.
|
@@ -43,7 +43,7 @@ export function ReopenCaseModal(props) {
|
|
|
43
43
|
return isValid;
|
|
44
44
|
};
|
|
45
45
|
const getCommentBody = () => {
|
|
46
|
-
return `**Reason for
|
|
46
|
+
return `**Reason for reopening case:** \n${selectedReason}${reasonWithDescription.includes(selectedReason) || props.isInternal
|
|
47
47
|
? `${props.isInternal ? '' : '. '}${reopenDescription}`
|
|
48
48
|
: ''}`;
|
|
49
49
|
};
|
|
@@ -63,7 +63,7 @@ export function ReopenCaseModal(props) {
|
|
|
63
63
|
setSelectedStatus(status);
|
|
64
64
|
onDropdownToggle(false);
|
|
65
65
|
};
|
|
66
|
-
const isDescriptionEmpty = isEmpty(reopenDescription === null || reopenDescription === void 0 ? void 0 : reopenDescription.trim());
|
|
66
|
+
const isDescriptionEmpty = showTextArea ? isEmpty(reopenDescription === null || reopenDescription === void 0 ? void 0 : reopenDescription.trim()) : false;
|
|
67
67
|
return (React.createElement(Modal, { id: "case-reopen-modal", title: t(`Reopening case ${props.caseNumber}`), "aria-describedby": "case-reopen-modal", isOpen: true, onClose: props.onClose, showClose: true, actions: [
|
|
68
68
|
React.createElement(Button, { key: "submit-description", variant: ButtonVariant.primary, onClick: onSubmit, isLoading: props.isUpdating, isDisabled: isDescriptionEmpty || showValidationError || props.isUpdating, "data-tracking-id": "reopen-case-description-modal-submit" },
|
|
69
69
|
React.createElement(Trans, null, "Reopen case")),
|
|
@@ -78,8 +78,8 @@ export function ReopenCaseModal(props) {
|
|
|
78
78
|
.map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
|
|
79
79
|
React.createElement(Trans, null, option)))))) : (React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "case-resolution", selections: selectedReason, onSelect: onReasonChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedReason ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: onDropdownToggle }, reasonsList.map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
|
|
80
80
|
React.createElement(Trans, null, option)))))))),
|
|
81
|
-
showTextArea && (React.createElement(FormGroup, { label: t('Please describe your reason'), type: "text", helperText: t(`Your comment will be visible${props.isInternal ? ' to the customers' : ''} under discussions after
|
|
81
|
+
showTextArea && (React.createElement(FormGroup, { label: t('Please describe your reason'), type: "text", helperText: t(`Your comment will be visible${props.isInternal ? ' to the customers' : ''} under discussions after reopening.`), isRequired: true, fieldId: "reopen-case-description" },
|
|
82
82
|
React.createElement(TextArea, { placeholder: t(props.isInternal
|
|
83
|
-
? 'Describe the reason for
|
|
83
|
+
? 'Describe the reason for reopening with the selected status'
|
|
84
84
|
: 'The better the description, the easier it will be for our support team to address your case.'), validated: showValidationError && isDescriptionEmpty && !reopenDescription ? 'error' : 'default', isRequired: true, id: "reopen-case-description", name: "reopen-case-description", "aria-describedby": "reopen-case-description", value: reopenDescription, onChange: onDescriptionChange, isDisabled: props.isUpdating }))))));
|
|
85
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.91",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"not ie <= 11",
|
|
144
144
|
"not op_mini all"
|
|
145
145
|
],
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "b972067ecc4afdd0a92d6d588831922733ee6ca9"
|
|
147
147
|
}
|