@rh-support/troubleshoot 2.2.33-beta.13 → 2.2.33-beta.15
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/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +4 -2
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAc5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA0KlC;kBA1KQ,YAAY;;;AA6KrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { accounts } from '@cee-eng/hydrajs';
|
|
|
11
11
|
import { Popover, PopoverPosition, Spinner, Switch } from '@patternfly/react-core';
|
|
12
12
|
import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
|
|
13
13
|
import { InlineEdit, LoadingIndicator, ToastNotification, useFetch, ValueChangedIcon } from '@rh-support/components';
|
|
14
|
-
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
14
|
+
import { fetchLoggedInUsersAccount, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
|
|
15
15
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
16
16
|
import isEqual from 'lodash/isEqual';
|
|
17
17
|
import React, { useContext, useEffect, useState } from 'react';
|
|
@@ -32,6 +32,7 @@ function CaseHostname(props) {
|
|
|
32
32
|
caseNumber: state.caseDetails.caseNumber,
|
|
33
33
|
}), isEqual);
|
|
34
34
|
const caseDispatch = useCaseDispatch();
|
|
35
|
+
const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
|
|
35
36
|
const { t } = useTranslation();
|
|
36
37
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
37
38
|
const [hostnameState, setHostnameState] = useState(hostname);
|
|
@@ -40,7 +41,7 @@ function CaseHostname(props) {
|
|
|
40
41
|
const [isShareHostNamesChecked, setIsShareHostNamesChecked] = useState(false);
|
|
41
42
|
const [isHostnamesLoading, setIsHostnamesLoading] = useState(true);
|
|
42
43
|
const { isExportingPDF } = useContext(PDFContext);
|
|
43
|
-
const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
44
|
+
const { globalMetadataState: { loggedInUsersAccount, loggedInUserJwtToken }, } = useContext(GlobalMetadataStateContext);
|
|
44
45
|
const userOriginalHostnameValue = () => __awaiter(this, void 0, void 0, function* () {
|
|
45
46
|
setIsShareHostNamesChecked(loggedInUsersAccount.data.shareHostnameWithRHT);
|
|
46
47
|
setIsHostnamesLoading(false);
|
|
@@ -89,6 +90,7 @@ function CaseHostname(props) {
|
|
|
89
90
|
try {
|
|
90
91
|
setIsHostnamesLoading(true);
|
|
91
92
|
yield updateShareHostnames(!isShareHostNamesChecked, accountNumber);
|
|
93
|
+
fetchLoggedInUsersAccount(dispatchToGlobalMetadataReducer, loggedInUserJwtToken, true);
|
|
92
94
|
setIsShareHostNamesChecked(!isShareHostNamesChecked);
|
|
93
95
|
}
|
|
94
96
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactPhoneNumberPopOver.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberPopOver.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"ContactPhoneNumberPopOver.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberPopOver.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,mBAkBrC,CAAC"}
|
|
@@ -4,6 +4,6 @@ import React from 'react';
|
|
|
4
4
|
import { Trans } from 'react-i18next';
|
|
5
5
|
export const ContactPhoneNumberPopOver = () => {
|
|
6
6
|
return (React.createElement(Popover, { "aria-label": "Support Severity Level info", position: PopoverPosition.right, bodyContent: React.createElement("p", null,
|
|
7
|
-
React.createElement(Trans, null, "
|
|
7
|
+
React.createElement(Trans, null, "When you change the phone number, it affects both this case and your contact info in the Red Hat support system.")), closeBtnAriaLabel: "Close" },
|
|
8
8
|
React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Contact Phone Number Info" })));
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.33-beta.
|
|
3
|
+
"version": "2.2.33-beta.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lib/**/*"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@cee-eng/hydrajs": "4.16.
|
|
29
|
+
"@cee-eng/hydrajs": "4.16.33",
|
|
30
30
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
31
31
|
"@patternfly/patternfly": "4.196.7",
|
|
32
32
|
"@patternfly/react-core": "4.264.0",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"react-virtualized": "^9.21.2"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@cee-eng/hydrajs": "4.16.
|
|
56
|
+
"@cee-eng/hydrajs": "4.16.33",
|
|
57
57
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
58
58
|
"@patternfly/patternfly": "4.196.7",
|
|
59
59
|
"@patternfly/react-core": "4.264.0",
|
|
60
60
|
"@progress/kendo-drawing": "^1.6.0",
|
|
61
61
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
62
|
-
"@rh-support/components": "2.1.19-beta.
|
|
63
|
-
"@rh-support/react-context": "2.1.20-beta.
|
|
62
|
+
"@rh-support/components": "2.1.19-beta.15",
|
|
63
|
+
"@rh-support/react-context": "2.1.20-beta.15",
|
|
64
64
|
"@rh-support/types": "2.0.2",
|
|
65
|
-
"@rh-support/user-permissions": "2.1.13-beta.
|
|
66
|
-
"@rh-support/utils": "2.1.10-beta.
|
|
65
|
+
"@rh-support/user-permissions": "2.1.13-beta.14",
|
|
66
|
+
"@rh-support/utils": "2.1.10-beta.13",
|
|
67
67
|
"@types/react-redux": "^7.1.12",
|
|
68
68
|
"@types/redux": "^3.6.0",
|
|
69
69
|
"dompurify": "^2.4.1",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"defaults and supports es6-module",
|
|
126
126
|
"maintained node versions"
|
|
127
127
|
],
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "0eb2c9003018f713f7b7539470ac64726be9767e"
|
|
129
129
|
}
|