@rh-support/troubleshoot 1.0.9 → 1.0.10
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/ProductSelector/AllProductsSelector.js +1 -2
- package/lib/esm/components/Suggestions/Suggestions.js +2 -2
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +5 -3
- package/package.json +2 -2
|
@@ -133,11 +133,10 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
133
133
|
!topContent.isFetching &&
|
|
134
134
|
topContent.data.length !== 0 && (React.createElement("button", { className: "btn btn-bordered-blue btn-slim pull-top-narrow push-bottom-narrow", "data-tracking-id": "suggested-fixes-trigger", onClick: toggleTCModal, type: "button" },
|
|
135
135
|
React.createElement(Trans, null, "Suggested fixes"))),
|
|
136
|
-
props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal", title: t('Suggested fixes'), "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: ModalVariant.large, onClose: toggleTCModal, actions: [
|
|
136
|
+
props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal", title: t('Suggested fixes'), description: t('There are new updates to suggested fixes after changing your product.'), "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: ModalVariant.large, onClose: toggleTCModal, actions: [
|
|
137
137
|
React.createElement("button", { key: "cancel", onClick: toggleTCModal, className: "btn btn-app btn-primary" },
|
|
138
138
|
React.createElement(Trans, null, "Cancel")),
|
|
139
139
|
] },
|
|
140
|
-
React.createElement("p", { className: "push-bottom" }, "There are new updates to suggested fixes after changing your product."),
|
|
141
140
|
React.createElement(Suggestions, { showMax: 6 })))));
|
|
142
141
|
});
|
|
143
142
|
AllProductsSelector.defaultProps = defaultProps;
|
|
@@ -40,8 +40,8 @@ export default function Suggestions(props) {
|
|
|
40
40
|
(_b = accordionRef.current) === null || _b === void 0 ? void 0 : _b.collapseAll();
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
return (React.createElement(
|
|
44
|
-
!isTCSearchEnabled && (React.createElement("p", { className: "
|
|
43
|
+
return (React.createElement("div", null,
|
|
44
|
+
!isTCSearchEnabled && (React.createElement("p", { className: "pf-u-mb-sm" },
|
|
45
45
|
React.createElement(Trans, null, "Here are some common suggestions:"))),
|
|
46
46
|
isTCSearchEnabled && (React.createElement(TopContentSearch, { topContentData: topContent.data, topContentResultsWrapperRef: accordionRef, onSearch: onSearchChange, dataTrackingId: "top-content-filter-troubleshoot", enableEventTracking: true })),
|
|
47
47
|
React.createElement("pfe-accordion", { ref: accordionRef }, map(filteredTC.slice(0, maxTC), (sug, index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAuCA,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAuCA,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA+YxD"}
|
|
@@ -193,10 +193,12 @@ export default function UpdateSeverityModal(props) {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
catch (e) {
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
onClose();
|
|
197
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
|
|
198
|
+
severity: caseDetails.caseSeverity,
|
|
198
199
|
});
|
|
199
|
-
|
|
200
|
+
setDescriptionValue(descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim());
|
|
201
|
+
reUpdateSeverity(caseDetails.caseSeverity);
|
|
200
202
|
caseUpdateError.showError(e, t('Severity failed to update'));
|
|
201
203
|
}
|
|
202
204
|
finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"not ie <= 11",
|
|
143
143
|
"not op_mini all"
|
|
144
144
|
],
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "ed558b84b303574cb44630c9fd651416280deb98"
|
|
146
146
|
}
|