@rh-support/manage 2.6.20 → 2.6.21
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":"ManageGroupUsers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/ManageGroupUsers/ManageGroupUsers.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA0C5D,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ManageGroupUsers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/ManageGroupUsers/ManageGroupUsers.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA0C5D,eAAO,MAAM,gBAAgB,yBA+X5B,CAAC"}
|
|
@@ -31,7 +31,7 @@ const RemoveMemberButton = ({ user, onRemove, isDisabled }) => {
|
|
|
31
31
|
return button;
|
|
32
32
|
};
|
|
33
33
|
export const ManageGroupUsers = () => {
|
|
34
|
-
var _a, _b;
|
|
34
|
+
var _a, _b, _c;
|
|
35
35
|
const { t } = useTranslation();
|
|
36
36
|
const location = useLocation();
|
|
37
37
|
const { globalMetadataState: { caseGroups, loggedInUsersAccount, loggedInUser }, } = useGlobalStateContext();
|
|
@@ -272,15 +272,21 @@ export const ManageGroupUsers = () => {
|
|
|
272
272
|
React.createElement(SearchInput, { className: "pf-v6-u-flex-grow-1 pf-v6-c-search-input pf-v6-u-background-color-100", id: "account-group-filter", value: userSearch, isDisabled: isFetching || !selectedGroup, onChange: (_, value) => setUserSearch(value), placeholder: t('Search for people in this group'), "aria-label": "Group search input", onClear: () => setUserSearch('') }))),
|
|
273
273
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading group users list') } },
|
|
274
274
|
React.createElement(ManageTable, { ariaLabel: t('Table to manage groups'), columns: columns, data: data, sortInfo: { column: 'first-name', direction: 'asc' }, isFetching: isFetching, isError: false, pagination: false })),
|
|
275
|
-
memberToRemove && (React.createElement(Modal, { variant: ModalVariant.
|
|
276
|
-
React.createElement(ModalHeader, { title: t('
|
|
275
|
+
memberToRemove && (React.createElement(Modal, { variant: ModalVariant.medium, isOpen: true, onClose: () => setMemberToRemove(null), "aria-label": t('Confirm removal') },
|
|
276
|
+
React.createElement(ModalHeader, { title: t('Are you sure you want to remove member?'), titleIconVariant: "warning" }),
|
|
277
277
|
React.createElement(ModalBody, null,
|
|
278
|
-
React.createElement("p", null, t('
|
|
279
|
-
|
|
278
|
+
React.createElement("p", null, t("'{{names}}' will be removed from '{{groupName}}'.", {
|
|
279
|
+
names: `${memberToRemove.firstName} ${memberToRemove.lastName}`,
|
|
280
|
+
groupName: (_c = selectedGroup === null || selectedGroup === void 0 ? void 0 : selectedGroup.name) !== null && _c !== void 0 ? _c : '',
|
|
280
281
|
})),
|
|
281
|
-
React.createElement(Alert, { className: "pf-v6-u-mt-md", isInline: true,
|
|
282
|
+
React.createElement(Alert, { className: "pf-v6-u-mt-md", isInline: true, variant: AlertVariant.info, title: t('Important') },
|
|
283
|
+
React.createElement(Trans, null,
|
|
284
|
+
"Case owners retain access to their cases even if removed from the case group. If needed, please reassign ownership to another user. To change the owner of an archived case, please submit a ticket to",
|
|
285
|
+
' ',
|
|
286
|
+
React.createElement("a", { href: "/support/contact/customerService" }, "Customer Service"),
|
|
287
|
+
"."))),
|
|
282
288
|
React.createElement(ModalFooter, null,
|
|
283
|
-
React.createElement(Button, { variant: "danger", onClick: handleRemoveMember, isLoading: isRemovingMember, isDisabled: isRemovingMember }, t('Remove')),
|
|
289
|
+
React.createElement(Button, { variant: "danger", onClick: handleRemoveMember, isLoading: isRemovingMember, isDisabled: isRemovingMember }, t('Yes, Remove')),
|
|
284
290
|
React.createElement(Button, { variant: "link", onClick: () => setMemberToRemove(null), isDisabled: isRemovingMember }, t('Cancel'))))),
|
|
285
291
|
canManageCaseGroups && isAddMembersModalOpen && selectedGroup && (React.createElement(AddMembersModal, { group: selectedGroup, existingMembers: initialData, onSuccess: refetch, onClose: () => setIsAddMembersModalOpen(false) }))));
|
|
286
292
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.21",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"@patternfly/patternfly": "6.2.1",
|
|
79
79
|
"@patternfly/react-core": "6.2.1",
|
|
80
80
|
"@patternfly/react-table": "6.2.1",
|
|
81
|
-
"@rh-support/components": "2.6.
|
|
81
|
+
"@rh-support/components": "2.6.21",
|
|
82
82
|
"@rh-support/configs": "2.1.14",
|
|
83
|
-
"@rh-support/react-context": "2.6.
|
|
83
|
+
"@rh-support/react-context": "2.6.21",
|
|
84
84
|
"@rh-support/types": "2.0.30",
|
|
85
|
-
"@rh-support/user-permissions": "2.6.
|
|
86
|
-
"@rh-support/utils": "2.6.
|
|
85
|
+
"@rh-support/user-permissions": "2.6.19",
|
|
86
|
+
"@rh-support/utils": "2.6.18",
|
|
87
87
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
88
88
|
"i18next": "^23.15.0",
|
|
89
89
|
"lodash": ">=4.17.15",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"defaults and supports es6-module",
|
|
103
103
|
"maintained node versions"
|
|
104
104
|
],
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "b47efd73e7afe275c94a32a3a3ff8c76f4c45ec1"
|
|
106
106
|
}
|