@rh-support/manage 2.1.25 → 2.1.27

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":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AAyBA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAmShD"}
1
+ {"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AA6BA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAsShD"}
@@ -11,7 +11,7 @@ import { accounts } from '@cee-eng/hydrajs';
11
11
  import { Card, CardBody, CardHeader, Popover, PopoverPosition, SelectOption, Spinner, TextArea, Tooltip, } from '@patternfly/react-core';
12
12
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
13
13
  import { EditorMode, ToastNotification, useFetch } from '@rh-support/components';
14
- import { GlobalMetadataStateContext } from '@rh-support/react-context';
14
+ import { fetchLoggedInUsersAccount, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
15
15
  import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
16
16
  import debounce from 'lodash/debounce';
17
17
  import isEmpty from 'lodash/isEmpty';
@@ -23,7 +23,8 @@ import { PreferenceSwitch } from '../components/PreferenceSwitch';
23
23
  export function PreferencesCaseView(props) {
24
24
  const { t } = useTranslation();
25
25
  const { updateCommentType, getCommentTypeFromPreference, getCommentSignature, updateCommentSignature, getOriginalCaseView, updateOriginalCaseView, } = useUserPreferences();
26
- const { globalMetadataState: { loggedInUsersAccount, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
26
+ const { globalMetadataState: { loggedInUsersAccount, loggedInUserJwtToken, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
27
+ const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
27
28
  const [isSharingHostNames, setIsSharingHostNames] = useState(false);
28
29
  const [localCommentSignature, setLocalCommentSignature] = useState('');
29
30
  const [originalCommentType, setOriginalCommentType] = useState('');
@@ -169,6 +170,7 @@ export function PreferencesCaseView(props) {
169
170
  try {
170
171
  setIsHostnamesLoading(true);
171
172
  yield updateShareHostnames(!isSharingHostNames, accountNumber);
173
+ fetchLoggedInUsersAccount(dispatchToGlobalMetadataReducer, loggedInUserJwtToken, true);
172
174
  setIsSharingHostNames(!isSharingHostNames);
173
175
  }
174
176
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.1.25",
3
+ "version": "2.1.27",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "homepage": "",
@@ -84,11 +84,11 @@
84
84
  "@patternfly/pfe-tabs": "1.12.3",
85
85
  "@patternfly/react-core": "4.264.0",
86
86
  "@patternfly/react-table": "4.111.33",
87
- "@rh-support/components": "2.1.21",
87
+ "@rh-support/components": "2.1.22",
88
88
  "@rh-support/configs": "2.0.9",
89
- "@rh-support/react-context": "2.1.22",
89
+ "@rh-support/react-context": "2.1.24",
90
90
  "@rh-support/types": "2.0.2",
91
- "@rh-support/user-permissions": "2.1.15",
91
+ "@rh-support/user-permissions": "2.1.16",
92
92
  "@rh-support/utils": "2.1.10",
93
93
  "@types/react-beautiful-dnd": "^13.0.0",
94
94
  "i18next": ">=17.0.1",
@@ -103,5 +103,5 @@
103
103
  "defaults and supports es6-module",
104
104
  "maintained node versions"
105
105
  ],
106
- "gitHead": "3e3eda0f499b2e8f4e498350ee53d76963aa73bc"
106
+ "gitHead": "30819e27405b4d667e866752d5ed11d31f527c11"
107
107
  }