diff --git a/src/store/api/groups.js b/src/store/api/groups.js index 385770a4ecd6..faf6f32bd46e 100644 --- a/src/store/api/groups.js +++ b/src/store/api/groups.js @@ -59,6 +59,15 @@ export const groupsApi = baseApi.injectEndpoints({ params: { tenantFilter: tenantDomain, userId }, }), }), + listGroupSenderAuth: builder.query({ + query: ({ tenantDomain, groupId }) => ({ + path: '/api/ListGroupSenderAuthentication', + params: { + TenantFilter: tenantDomain, + GroupId: groupId, + }, + }), + }), }), }) export const { @@ -69,4 +78,5 @@ export const { useListGroupMembersQuery, useListGroupOwnersQuery, useListUserGroupsQuery, + useListGroupSenderAuthQuery, } = groupsApi diff --git a/src/views/identity/administration/EditGroup.jsx b/src/views/identity/administration/EditGroup.jsx index 7e81fc66306e..7f3bd6af78a8 100644 --- a/src/views/identity/administration/EditGroup.jsx +++ b/src/views/identity/administration/EditGroup.jsx @@ -18,6 +18,7 @@ import { useListGroupMembersQuery, useListGroupOwnersQuery, useListGroupQuery, + useListGroupSenderAuthQuery, } from 'src/store/api/groups' import { useDispatch } from 'react-redux' import { ModalService } from 'src/components/utilities' @@ -41,6 +42,13 @@ const EditGroup = () => { isSuccess, } = useListGroupQuery({ tenantDomain, groupId }) + const { + data: SenderAuth = {}, + isFetching: SenderAuthisFetching, + error: SenderAuthError, + isSuccess: SenderAuthIsSuccess, + } = useListGroupSenderAuthQuery({ tenantDomain, groupId }) + const { data: members = [], isFetching: membersisFetching, @@ -97,6 +105,7 @@ const EditGroup = () => { setQueryError(true) } }, [groupId, tenantDomain, dispatch]) + const onSubmit = (values) => { const shippedValues = { tenantID: tenantDomain, @@ -154,6 +163,12 @@ const EditGroup = () => { {isSuccess && (
{ return ( @@ -304,8 +319,18 @@ const EditGroup = () => { {isFetching && } {isSuccess && ( <> - This is the (raw) information for this group. -
{JSON.stringify(group, null, 2)}
+
+ This is the (raw) information for this group. +
{JSON.stringify(group, null, 2)}
+
+
+ This is the (raw) information for SenderAuth. + {SenderAuthisFetching && } + {SenderAuthIsSuccess &&
{JSON.stringify(SenderAuth, null, 2)}
} + {SenderAuthError && ( +
Error fetching SenderAuth data: {SenderAuthError.message}
+ )} +
)}