Skip to content

Commit c889ed1

Browse files
committed
Update DeployJITAdmin.jsx
1 parent 5423ed5 commit c889ed1

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/views/identity/administration/DeployJITAdmin.jsx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import React, { useState } from 'react'
22
import { CButton, CCallout, CCol, CForm, CRow, CSpinner, CTooltip } from '@coreui/react'
33
import { useSelector } from 'react-redux'
44
import { Field, Form } from 'react-final-form'
5-
import { Condition, RFFCFormInput, RFFCFormRadioList, RFFSelectSearch } from 'src/components/forms'
5+
import {
6+
Condition,
7+
RFFCFormInput,
8+
RFFCFormRadioList,
9+
RFFCFormSwitch,
10+
RFFSelectSearch,
11+
} from 'src/components/forms'
612
import { useLazyGenericGetRequestQuery, useLazyGenericPostRequestQuery } from 'src/store/api/app'
713
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
814
import { faCircleNotch, faEdit, faEye } from '@fortawesome/free-solid-svg-icons'
@@ -33,11 +39,19 @@ const DeployJITAdmin = () => {
3339
const shippedValues = {
3440
TenantFilter: tenantDomain,
3541
UserId: values.UserId?.value,
42+
UserPrincipalName: values.UserPrincipalName,
43+
FirstName: values.FirstName,
44+
LastName: values.LastName,
3645
useraction: values.useraction,
3746
AdminRoles: values.AdminRoles?.map((role) => role.value),
3847
StartDate: startTime,
3948
EndDate: endTime,
4049
ExpireAction: values.expireAction.value,
50+
PostExecution: {
51+
Webhook: values.webhook,
52+
Email: values.email,
53+
PSA: values.psa,
54+
},
4155
}
4256
genericPostRequest({ path: '/api/ExecJITAdmin', values: shippedValues }).then((res) => {
4357
setRefreshState(res.requestId)
@@ -181,6 +195,14 @@ const DeployJITAdmin = () => {
181195
/>
182196
</CCol>
183197
</CRow>
198+
<CRow className="mb-3">
199+
<CCol>
200+
<label>Send results to</label>
201+
<RFFCFormSwitch name="webhook" label="Webhook" />
202+
<RFFCFormSwitch name="email" label="E-mail" />
203+
<RFFCFormSwitch name="psa" label="PSA" />
204+
</CCol>
205+
</CRow>
184206
<CRow className="mb-3">
185207
<CCol md={6}>
186208
<CButton type="submit" disabled={submitting}>
@@ -227,7 +249,7 @@ const DeployJITAdmin = () => {
227249
<CippDatatable
228250
title="JIT Admins"
229251
path="/api/ExecJITAdmin?Action=List"
230-
params={{ TenantFilter: tenantDomain }}
252+
params={{ TenantFilter: tenantDomain, refreshState }}
231253
columns={[
232254
{
233255
name: 'User',

0 commit comments

Comments
 (0)