Skip to content

Commit

Permalink
allow setting of forwards to distrbution lists
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Dec 5, 2023
1 parent 7a0b132 commit 743ee7a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/views/identity/administration/OffboardingWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from 'src/components/forms'
import { TenantSelector } from 'src/components/utilities'
import { useListUsersQuery } from 'src/store/api/users'
import { useLazyGenericPostRequestQuery } from 'src/store/api/app'
import { useGenericGetRequestQuery, useLazyGenericPostRequestQuery } from 'src/store/api/app'
import DatePicker from 'react-datepicker'
import 'react-datepicker/dist/react-datepicker.css'

Expand Down Expand Up @@ -48,6 +48,13 @@ const OffboardingWizard = () => {
isFetching: usersIsFetching,
error: usersError,
} = useListUsersQuery({ tenantDomain })

const {
data: recipients = [],
isFetching: recipientsIsFetching,
error: recipientsError,
} = useGenericGetRequestQuery({ path: `/api/ListRecipients?tenantFilter=${tenantDomain}` })

const currentSettings = useSelector((state) => state.app)
const [genericPostRequest, postResults] = useLazyGenericPostRequestQuery()

Expand Down Expand Up @@ -194,7 +201,7 @@ const OffboardingWizard = () => {
/>
<RFFSelectSearch
label="Forward email to other user"
values={users
values={recipients
?.filter((x) => x.mail)
.map((user) => ({
value: user.mail,
Expand Down

0 comments on commit 743ee7a

Please sign in to comment.