@rh-support/troubleshoot 2.6.3 → 2.6.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSummaryErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,UAAU,MAAM;IACZ,gBAAgB,EAAE,GAAG,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,GAAG,CAAC;CACzB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,qBAwFpD"}
1
+ {"version":3,"file":"CaseSummaryErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,MAAM;IACZ,gBAAgB,EAAE,GAAG,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,GAAG,CAAC;CACzB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,qBA4FpD"}
@@ -5,6 +5,7 @@ import globalDangerColor100 from '@patternfly/react-tokens/dist/js/global_danger
5
5
  import { SupportFeedbackModal } from '@rh-support/components';
6
6
  import React, { useEffect, useState } from 'react';
7
7
  import { Trans } from 'react-i18next';
8
+ import { CaseSummaryStates } from '../../../../constants/caseDetailsConstants';
8
9
  export function CaseSummaryErrorMessage(props) {
9
10
  const [isFeedbackModalOpen, setIsFeedbackModalOpen] = useState(false);
10
11
  const onCloseFeedbackModal = () => {
@@ -40,7 +41,9 @@ export function CaseSummaryErrorMessage(props) {
40
41
  }, []);
41
42
  return (React.createElement(React.Fragment, null,
42
43
  React.createElement(EmptyState, { variant: EmptyStateVariant.sm },
43
- React.createElement(EmptyStateHeader, { titleText: 'Error while loading case summary', icon: React.createElement(EmptyStateIcon, { icon: ExclamationCircleIcon, color: globalDangerColor100.value }), headingLevel: "h2" }),
44
+ React.createElement(EmptyStateHeader, { titleText: props.caseSummaryState === CaseSummaryStates.CASE_LANGUAGE_NOT_SUPPORTED
45
+ ? 'Unsupported language detected'
46
+ : 'Error while loading case summary', icon: React.createElement(EmptyStateIcon, { icon: ExclamationCircleIcon, color: globalDangerColor100.value }), headingLevel: "h2" }),
44
47
  React.createElement(EmptyStateBody, null,
45
48
  React.createElement(Trans, null, props.errorMessage && React.createElement("div", { dangerouslySetInnerHTML: { __html: props.errorMessage } }))),
46
49
  React.createElement(EmptyStateFooter, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.3",
3
+ "version": "2.6.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -134,5 +134,5 @@
134
134
  "defaults and supports es6-module",
135
135
  "maintained node versions"
136
136
  ],
137
- "gitHead": "6a5a61b2206a91cda75894756c319ee1e7dc53e6"
137
+ "gitHead": "3ef51f921b5d5b256a9fd9b0525c27c1cf4ee2ae"
138
138
  }