@rh-support/troubleshoot 0.2.125 → 0.2.128
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/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +1 -1
- package/lib/esm/components/CaseInformation/Severity.d.ts +1 -0
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +24 -2
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts +7 -0
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -0
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +179 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAyCA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAyCA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,eAgfjD"}
|
|
@@ -281,7 +281,7 @@ export default function CaseOverview(props) {
|
|
|
281
281
|
React.createElement("div", { className: "form-wrapper" },
|
|
282
282
|
React.createElement(CaseType, { selectedType: caseType, onTypeChange: onTypeChange, isDisabled: !canManageCase || allCaseTypes.isFetching, allTypes: allCaseTypes.data, isFetching: caseOverviewState.caseTypeUpdating && isCaseUpdating, hasError: allCaseTypes.isError })),
|
|
283
283
|
React.createElement("div", { className: "form-wrapper" },
|
|
284
|
-
React.createElement(Severity, { onSeverityChange: onSeverityChange, isDisabled: !canManageCase, isFetching: caseOverviewState.caseSeverityUpdating && isCaseUpdating })))),
|
|
284
|
+
React.createElement(Severity, { onCaseDetailsPage: true, onSeverityChange: onSeverityChange, isDisabled: !canManageCase, isFetching: caseOverviewState.caseSeverityUpdating && isCaseUpdating })))),
|
|
285
285
|
React.createElement(ExpandableSection, { className: "case-details-main", toggleText: t('Case information'), isExpanded: isDetailsExpanded, onToggle: onToggleDetails },
|
|
286
286
|
React.createElement(CaseInformation, null))),
|
|
287
287
|
showCloseCaseModal && (React.createElement(CloseCaseModal, { onConfirm: (commentBody) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -60,7 +60,7 @@ export function PostComment(props) {
|
|
|
60
60
|
setCommentType(defaultCommentType);
|
|
61
61
|
const defaultCommentSignature = retrievedCommentSignature || '';
|
|
62
62
|
setCommentSignature(defaultCommentSignature);
|
|
63
|
-
if (isEmpty(commentText)) {
|
|
63
|
+
if (isEmpty(commentText) && !isEmpty(defaultCommentSignature)) {
|
|
64
64
|
setCommentText(`\n ${defaultCommentSignature}` || '');
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAKvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAKvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAuBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAC/D,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAyQ9B;kBAzQQ,QAAQ;;;AA2QjB,eAAe,QAAQ,CAAC"}
|
|
@@ -15,6 +15,7 @@ import { useCaseSelector } from '../../context/CaseContext';
|
|
|
15
15
|
import { getIrtForSLAAndSeverity, getOrtForSLAAndSeverity, getSeverityDescription } from '../../reducers/CaseHelpers';
|
|
16
16
|
import { CaseValuesToWatch } from '../shared/Constants';
|
|
17
17
|
import { getChangedValueTooltip } from '../shared/utils';
|
|
18
|
+
import UpdateSeverityModal from '../UpdateSeverityModal/UpdateSeverityModal';
|
|
18
19
|
const defaultProps = {
|
|
19
20
|
id: '',
|
|
20
21
|
className: '',
|
|
@@ -36,6 +37,7 @@ function Severity(props) {
|
|
|
36
37
|
const [isSeverityInValid, setIsSeverityInValid] = useState(false);
|
|
37
38
|
const [seviritiesOptions, setSeveritiesOptions] = useState([]);
|
|
38
39
|
const [doNotShowIRT, setDoNotShowIRT] = useState(false);
|
|
40
|
+
const [openUpdateSeverityModal, setOpenUpdateSeverityModal] = useState(false);
|
|
39
41
|
const updateState = (value) => {
|
|
40
42
|
const casePayload = { severity: value };
|
|
41
43
|
// .. change fts on sev change only while creating case or wchen we change to sev1
|
|
@@ -104,6 +106,9 @@ function Severity(props) {
|
|
|
104
106
|
label: `${severity} - ${getSeverityDescription(severity)}`,
|
|
105
107
|
additionalInfo: getAdditionalInfo(slaLocal, severity),
|
|
106
108
|
};
|
|
109
|
+
const toggleModal = () => {
|
|
110
|
+
setOpenUpdateSeverityModal((openUpdateSeverityModal) => !openUpdateSeverityModal);
|
|
111
|
+
};
|
|
107
112
|
useEffect(() => {
|
|
108
113
|
var _a, _b, _c;
|
|
109
114
|
if (!product ||
|
|
@@ -149,7 +154,24 @@ function Severity(props) {
|
|
|
149
154
|
"\u00A0",
|
|
150
155
|
filteredSeverities.filter((s) => s.disabled).length !== 0 && (React.createElement(Tooltip, { position: TooltipPosition.top, content: React.createElement(Trans, null, "Only the enabled severity levels are supported for selected product and version.") },
|
|
151
156
|
React.createElement(WarningTriangleIcon, { color: "#ec7a08", size: "sm", title: "Support Severity Level warning" })))),
|
|
152
|
-
|
|
157
|
+
!props.isDisabled && props.onCaseDetailsPage === true ? (React.createElement(React.Fragment, null,
|
|
158
|
+
React.createElement("div", { onClick: toggleModal },
|
|
159
|
+
React.createElement(Dropdown, { name: "open-case-severity", placeholder: t(`Select a severity`), title: t(`Select a severity`), list: allCaseSeverities.data
|
|
160
|
+
? toOptions(filteredSeverities, {
|
|
161
|
+
labelKey: 'label',
|
|
162
|
+
additionalInfoKey: 'additionalInfo',
|
|
163
|
+
disabledKey: 'disabled',
|
|
164
|
+
})
|
|
165
|
+
: [], selectedItem: toOption(selectedSeverity, {
|
|
166
|
+
labelKey: 'label',
|
|
167
|
+
additionalInfoKey: 'additionalInfo',
|
|
168
|
+
disabledKey: 'disabled',
|
|
169
|
+
}), disabled: allCaseSeverities.isError ||
|
|
170
|
+
props.isDisabled ||
|
|
171
|
+
allCaseSeverities.isFetching ||
|
|
172
|
+
ownersEntitlements.isFetching ||
|
|
173
|
+
versionsDetails.isFetching, isLoadingList: props.isFetching || versionsDetails.isFetching, isInValid: allCaseSeverities.isError || isSeverityInValid, required: true, onChange: onSeverityChange, onOuterClick: setIsSeverityInValidLocal, "data-tracking-id": "open-case-severity" })),
|
|
174
|
+
React.createElement(UpdateSeverityModal, { show: openUpdateSeverityModal, onClose: toggleModal }))) : (React.createElement(Dropdown, { name: "open-case-severity", placeholder: t(`Select a severity`), title: t(`Select a severity`), list: allCaseSeverities.data
|
|
153
175
|
? toOptions(filteredSeverities, {
|
|
154
176
|
labelKey: 'label',
|
|
155
177
|
additionalInfoKey: 'additionalInfo',
|
|
@@ -163,7 +185,7 @@ function Severity(props) {
|
|
|
163
185
|
props.isDisabled ||
|
|
164
186
|
allCaseSeverities.isFetching ||
|
|
165
187
|
ownersEntitlements.isFetching ||
|
|
166
|
-
versionsDetails.isFetching, isLoadingList: props.isFetching || versionsDetails.isFetching, isInValid: allCaseSeverities.isError || isSeverityInValid, required: true, onChange: onSeverityChange, onOuterClick: setIsSeverityInValidLocal, "data-tracking-id": "open-case-severity" })));
|
|
188
|
+
versionsDetails.isFetching, isLoadingList: props.isFetching || versionsDetails.isFetching, isInValid: allCaseSeverities.isError || isSeverityInValid, required: true, onChange: onSeverityChange, onOuterClick: setIsSeverityInValidLocal, "data-tracking-id": "open-case-severity" }))));
|
|
167
189
|
}
|
|
168
190
|
Severity.defaultProps = defaultProps;
|
|
169
191
|
export default Severity;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AA0BA,UAAU,MAAM;IACZ,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAwOxD"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
|
+
import { Button, Modal, TextArea } from '@patternfly/react-core';
|
|
12
|
+
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
|
+
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
14
|
+
import { ability, resourceActions, resources } from '@rh-support/user-permissions';
|
|
15
|
+
import isEmpty from 'lodash/isEmpty';
|
|
16
|
+
import isEqual from 'lodash/isEqual';
|
|
17
|
+
import React, { useContext, useReducer, useState } from 'react';
|
|
18
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
19
|
+
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
20
|
+
import { useCaseDetailsPageStateContext } from '../../context/CaseDetailsPageContext';
|
|
21
|
+
import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../context/CaseDiscussionTabContext';
|
|
22
|
+
import { updateDiscussionStateComments } from '../../reducers/CaseDiscussionTabReducer';
|
|
23
|
+
import { caseOverviewReducer, initialCaseViewState, setSeverityUpdating } from '../../reducers/CaseOverviewReducer';
|
|
24
|
+
import { checkForCaseStatusToggleOnAttachOrComment, setCaseDetails, updateCaseDetails, } from '../../reducers/CaseReducer';
|
|
25
|
+
import Severity from '../CaseInformation/Severity';
|
|
26
|
+
export default function UpdateSeverityModal(props) {
|
|
27
|
+
const { show, onClose } = props;
|
|
28
|
+
const { t } = useTranslation();
|
|
29
|
+
const [descriptionValue, setDescriptionValue] = useState('');
|
|
30
|
+
const [caseOverviewState, caseOverviewDispatch] = useReducer(caseOverviewReducer, initialCaseViewState);
|
|
31
|
+
const canManageCase = ability.can(resourceActions.UPDATE, resources.CASE_DETAILS);
|
|
32
|
+
const caseDispatch = useCaseDispatch();
|
|
33
|
+
const canEditCase = useCanEditCase();
|
|
34
|
+
const [updatedSeverity, setUpdatedSeverity] = useState();
|
|
35
|
+
const [newSeverityValue, setNewSeverityValue] = useState([]);
|
|
36
|
+
const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
|
|
37
|
+
propgateErrors: true,
|
|
38
|
+
});
|
|
39
|
+
const { caseDetailsPageState: { caseFeedbacksHydra }, } = useCaseDetailsPageStateContext();
|
|
40
|
+
const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
|
|
41
|
+
const { sort, allDiscussions, discussionFiltersListState } = useCaseDiscussionTabStateContext();
|
|
42
|
+
const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
43
|
+
const caseState = useCaseSelector((state) => ({
|
|
44
|
+
caseDetails: {
|
|
45
|
+
caseNumber: state.caseDetails.caseNumber,
|
|
46
|
+
caseSeverity: state.caseDetails.severity,
|
|
47
|
+
},
|
|
48
|
+
isCaseUpdating: state.isCaseUpdating,
|
|
49
|
+
}), isEqual);
|
|
50
|
+
const { caseDetails, isCaseUpdating } = caseState;
|
|
51
|
+
const [currentSeverity, setCurrentSeverity] = useState(caseDetails.caseSeverity);
|
|
52
|
+
// Modal cancel function which resets the field
|
|
53
|
+
const onCancel = () => {
|
|
54
|
+
onClose();
|
|
55
|
+
setSeverityUpdating(caseOverviewDispatch, false);
|
|
56
|
+
setNewSeverityValue([]);
|
|
57
|
+
setCaseDetails(caseDispatch, { severity: currentSeverity });
|
|
58
|
+
setDescriptionValue('');
|
|
59
|
+
};
|
|
60
|
+
// To handle on successful submit
|
|
61
|
+
const onSuccessfulSubmit = () => {
|
|
62
|
+
onClose();
|
|
63
|
+
setSeverityUpdating(caseOverviewDispatch, false);
|
|
64
|
+
setNewSeverityValue([]);
|
|
65
|
+
setDescriptionValue('');
|
|
66
|
+
};
|
|
67
|
+
// To handle description change
|
|
68
|
+
const handleTextAreaChange = (value) => {
|
|
69
|
+
setDescriptionValue(value);
|
|
70
|
+
};
|
|
71
|
+
const onSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
// Severity update successful comment body
|
|
73
|
+
const severityUpdateComment = t('#### Severity update \n Severity changed from {{oldSeverity}} to {{newSeverity}}\n\n #### Description \n{{description}}', {
|
|
74
|
+
oldSeverity: currentSeverity,
|
|
75
|
+
newSeverity: newSeverityValue,
|
|
76
|
+
description: descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim(),
|
|
77
|
+
});
|
|
78
|
+
// Severity update failed comment body
|
|
79
|
+
const severityUpdateFailedComment = t('#### Severity update \n Failed to change severity from {{oldSeverity}} to {{newSeverity}}\n\n #### Description \n{{description}}', {
|
|
80
|
+
oldSeverity: currentSeverity,
|
|
81
|
+
newSeverity: newSeverityValue,
|
|
82
|
+
description: descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim(),
|
|
83
|
+
});
|
|
84
|
+
try {
|
|
85
|
+
setSeverityUpdating(caseOverviewDispatch, true);
|
|
86
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, updatedSeverity);
|
|
87
|
+
try {
|
|
88
|
+
yield postCommentRequest({
|
|
89
|
+
caseNumber: caseDetails.caseNumber,
|
|
90
|
+
commentBody: severityUpdateComment === null || severityUpdateComment === void 0 ? void 0 : severityUpdateComment.trim(),
|
|
91
|
+
contentType: 'markdown',
|
|
92
|
+
});
|
|
93
|
+
try {
|
|
94
|
+
checkForCaseStatusToggleOnAttachOrComment(caseDispatch, loggedInUserRights.data.isInternal(), caseDetails.caseSeverity);
|
|
95
|
+
setCurrentSeverity(newSeverityValue);
|
|
96
|
+
ToastNotification.addSuccessMessage(t('Severity has been successfully updated'));
|
|
97
|
+
onSuccessfulSubmit();
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
|
|
101
|
+
severity: currentSeverity,
|
|
102
|
+
});
|
|
103
|
+
yield postCommentRequest({
|
|
104
|
+
caseNumber: caseDetails.caseNumber,
|
|
105
|
+
commentBody: severityUpdateFailedComment === null || severityUpdateFailedComment === void 0 ? void 0 : severityUpdateFailedComment.trim(),
|
|
106
|
+
contentType: 'markdown',
|
|
107
|
+
});
|
|
108
|
+
ToastNotification.addDangerMessage(t(`Failed to check case status. Please try again.`));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (e) {
|
|
112
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
|
|
113
|
+
severity: currentSeverity,
|
|
114
|
+
});
|
|
115
|
+
ToastNotification.addDangerMessage(t(`Couldn't post severity update comment. Please try again.`));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
catch (e) {
|
|
119
|
+
ToastNotification.addDangerMessage(t('Severity failed to update'));
|
|
120
|
+
onSuccessfulSubmit();
|
|
121
|
+
}
|
|
122
|
+
finally {
|
|
123
|
+
yield updateDiscussionStateComments(dispatchDiscussion, caseDetails.caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
// To check if description is valid
|
|
127
|
+
const isTextAreaValid = () => {
|
|
128
|
+
if (isEmpty(descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim())) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
else
|
|
132
|
+
return true;
|
|
133
|
+
};
|
|
134
|
+
// To compare previous and current severity values
|
|
135
|
+
const checkSeverityValid = () => {
|
|
136
|
+
const checkForUndefined = newSeverityValue.length === 0;
|
|
137
|
+
if (isEqual(currentSeverity, newSeverityValue)) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
else if (checkForUndefined) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
// To disable submit button wrt above conditions
|
|
148
|
+
const isSubmitButtonDisabled = checkSeverityValid() && isTextAreaValid() ? false : true;
|
|
149
|
+
// Update severity modal buttons
|
|
150
|
+
const modalActions = [
|
|
151
|
+
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, isLoading: isCaseUpdating || isPostingComment, "data-tracking-id": "update-severity-submit", isDisabled: isSubmitButtonDisabled }, t('Submit')),
|
|
152
|
+
React.createElement(Button, { key: "back", variant: "link", onClick: onCancel, "data-tracking-id": "update-severity-cancel" }, t('Cancel')),
|
|
153
|
+
];
|
|
154
|
+
// To handle severity change in the modal
|
|
155
|
+
const onSeverityChange = (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
if (canEditCase.alert())
|
|
157
|
+
return;
|
|
158
|
+
setUpdatedSeverity(payload);
|
|
159
|
+
setNewSeverityValue(payload['severity']);
|
|
160
|
+
setCaseDetails(caseDispatch, payload);
|
|
161
|
+
});
|
|
162
|
+
// Returns the modal body with its contents
|
|
163
|
+
const modalBody = () => {
|
|
164
|
+
return (React.createElement(React.Fragment, null,
|
|
165
|
+
React.createElement("form", { "aria-label": t('form') },
|
|
166
|
+
React.createElement("div", { className: "form-group pf-u-mt-xs" },
|
|
167
|
+
React.createElement("div", null,
|
|
168
|
+
React.createElement(Severity, { onCaseDetailsPage: false, onSeverityChange: onSeverityChange, isDisabled: !canManageCase && isCaseUpdating, isFetching: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) || isPostingComment })),
|
|
169
|
+
React.createElement("div", null,
|
|
170
|
+
React.createElement("label", { htmlFor: "date-input", className: "pf-u-mt-md" },
|
|
171
|
+
React.createElement(Trans, null, "Describe update"),
|
|
172
|
+
React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
|
|
173
|
+
React.createElement(TextArea, { placeholder: "Please identify any changes in the case's business impact", isDisabled: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) || isPostingComment, value: descriptionValue, onChange: handleTextAreaChange, resizeOrientation: "vertical", "aria-label": "summary", isRequired: true }),
|
|
174
|
+
React.createElement("div", { className: "pf-u-mt-xs" },
|
|
175
|
+
React.createElement(Trans, null, "Your comment will be visible under discussions")))))));
|
|
176
|
+
};
|
|
177
|
+
// Main modal and its headings
|
|
178
|
+
return (React.createElement(Modal, { title: t('Update severity'), description: t('Describing your update helps us better assist you.'), isOpen: show, onClose: onCancel, actions: modalActions }, modalBody()));
|
|
179
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.128",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@cee-eng/hydrajs": "4.12.6",
|
|
30
30
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
31
|
-
"@patternfly/patternfly": "4.
|
|
31
|
+
"@patternfly/patternfly": "4.185.1",
|
|
32
32
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
33
33
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
34
34
|
"@patternfly/pfe-tabs": "1.12.3",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"@progress/kendo-drawing": "^1.6.0",
|
|
75
75
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
76
76
|
"@rh-support/api": "0.3.24",
|
|
77
|
-
"@rh-support/components": "1.1.
|
|
78
|
-
"@rh-support/react-context": "0.2.
|
|
77
|
+
"@rh-support/components": "1.1.77",
|
|
78
|
+
"@rh-support/react-context": "0.2.83",
|
|
79
79
|
"@rh-support/types": "0.2.0",
|
|
80
|
-
"@rh-support/user-permissions": "0.2.
|
|
80
|
+
"@rh-support/user-permissions": "0.2.63",
|
|
81
81
|
"@rh-support/utils": "0.2.46",
|
|
82
82
|
"@types/react-redux": "^7.1.12",
|
|
83
83
|
"@types/redux": "^3.6.0",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"not ie <= 11",
|
|
144
144
|
"not op_mini all"
|
|
145
145
|
],
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "4ccfcdf67182264763662c2f1d833d9fa059a132"
|
|
147
147
|
}
|