@rh-support/manage 2.1.26 → 2.1.28
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/ManagePartnerships/RequestCollaborationModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.js +6 -5
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.js +4 -2
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAuBA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAuBA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,gBAmOtD,CAAC"}
|
|
@@ -58,6 +58,7 @@ export const RequestCollaborationModal = (props) => {
|
|
|
58
58
|
setShowDone(false);
|
|
59
59
|
setIsDoneClicked(false);
|
|
60
60
|
setIsCopyClicked(false);
|
|
61
|
+
setLocalLinkName('');
|
|
61
62
|
};
|
|
62
63
|
const onClose = () => {
|
|
63
64
|
reset();
|
|
@@ -65,7 +66,7 @@ export const RequestCollaborationModal = (props) => {
|
|
|
65
66
|
};
|
|
66
67
|
const onDone = () => {
|
|
67
68
|
setIsDoneClicked(true);
|
|
68
|
-
if (isCopyClicked) {
|
|
69
|
+
if (isCopyClicked || isRequestingAgain) {
|
|
69
70
|
reset();
|
|
70
71
|
props.onClose();
|
|
71
72
|
}
|
|
@@ -118,7 +119,7 @@ export const RequestCollaborationModal = (props) => {
|
|
|
118
119
|
return (React.createElement(Modal, { id: "request-collaboration-modal", className: "pf-modal-overflow-visible", title: isRequestingAgain ? 'Request collaboration again' : 'Request collaboration', isOpen: props.isOpen, onClose: onClose, showClose: true, onEscapePress: onClose, variant: ModalVariant.large, actions: [
|
|
119
120
|
...(showDone
|
|
120
121
|
? [
|
|
121
|
-
React.createElement(Button, { key: "done", variant: ButtonVariant.primary, onClick: onDone, isDisabled: validated === 'error' || (!isCopyClicked && isDoneClicked), "data-tracking-id": "request-collaboration-done-button" },
|
|
122
|
+
React.createElement(Button, { key: "done", variant: ButtonVariant.primary, onClick: onDone, isDisabled: validated === 'error' || (!isRequestingAgain && !isCopyClicked && isDoneClicked), "data-tracking-id": "request-collaboration-done-button" },
|
|
122
123
|
React.createElement(Trans, null, "Done")),
|
|
123
124
|
]
|
|
124
125
|
: [
|
|
@@ -135,8 +136,8 @@ export const RequestCollaborationModal = (props) => {
|
|
|
135
136
|
React.createElement(Trans, null, "Please enter a name for your request")), helperTextInvalid: isDuplicateLinkName
|
|
136
137
|
? t('Link name already used. Please enter a unique name')
|
|
137
138
|
: t('Please enter a name for your request'), helperTextInvalidIcon: React.createElement(ExclamationCircleIcon, null), fieldId: partnershipLinkId, validated: validated, isRequired: true },
|
|
138
|
-
React.createElement(TextInput, { isRequired: true, validated: validated, value: localLinkName || props.sendReqAgainFriendlyName, id: partnershipLinkId, "aria-describedby": "age-1-helper", onChange: handleLinkNameChange, onKeyDown: handleKeyDown, placeholder: t('e.g. Customer name'), isDisabled: showDone }))))),
|
|
139
|
-
showDone && (React.createElement(React.Fragment, null,
|
|
139
|
+
React.createElement(TextInput, { isRequired: true, validated: validated, value: localLinkName || props.sendReqAgainFriendlyName, id: partnershipLinkId, "aria-describedby": "age-1-helper", onChange: handleLinkNameChange, onKeyDown: handleKeyDown, placeholder: t('e.g. Customer name'), isDisabled: showDone || isRequestingAgain }))))),
|
|
140
|
+
showDone && (React.createElement(React.Fragment, null, !isRequestingAgain ? (React.createElement(React.Fragment, null,
|
|
140
141
|
React.createElement("h4", null,
|
|
141
142
|
React.createElement("strong", null, "Copy and send")),
|
|
142
143
|
React.createElement("div", { className: "clipboard-wrapper" },
|
|
@@ -149,5 +150,5 @@ export const RequestCollaborationModal = (props) => {
|
|
|
149
150
|
' ',
|
|
150
151
|
"Please ",
|
|
151
152
|
React.createElement("strong", null, "copy and send"),
|
|
152
|
-
" this unique link to your customer for approval.")))))));
|
|
153
|
+
" this unique link to your customer for approval.")))) : (React.createElement(Trans, null, "Partnership request expiration date is extended.")))))));
|
|
153
154
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"
|
|
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.
|
|
3
|
+
"version": "2.1.28",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"prepublishOnly": "npm run build"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@cee-eng/hydrajs": "4.16.
|
|
49
|
+
"@cee-eng/hydrajs": "4.16.33",
|
|
50
50
|
"@patternfly/patternfly": "4.196.7",
|
|
51
51
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
52
52
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
"typescript": "4.3.5"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@cee-eng/hydrajs": "4.16.
|
|
80
|
+
"@cee-eng/hydrajs": "4.16.33",
|
|
81
81
|
"@patternfly/patternfly": "4.196.7",
|
|
82
82
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
83
83
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
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.
|
|
88
|
-
"@rh-support/configs": "2.0.
|
|
89
|
-
"@rh-support/react-context": "2.1.
|
|
87
|
+
"@rh-support/components": "2.1.23",
|
|
88
|
+
"@rh-support/configs": "2.0.10",
|
|
89
|
+
"@rh-support/react-context": "2.1.25",
|
|
90
90
|
"@rh-support/types": "2.0.2",
|
|
91
|
-
"@rh-support/user-permissions": "2.1.
|
|
92
|
-
"@rh-support/utils": "2.1.
|
|
91
|
+
"@rh-support/user-permissions": "2.1.17",
|
|
92
|
+
"@rh-support/utils": "2.1.11",
|
|
93
93
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
94
94
|
"i18next": ">=17.0.1",
|
|
95
95
|
"lodash": ">=4.17.15",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"defaults and supports es6-module",
|
|
104
104
|
"maintained node versions"
|
|
105
105
|
],
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "c082a541ec56ac26470bb50a86a6c5af323f5c17"
|
|
107
107
|
}
|