Skip to content

Commit ade6657

Browse files
committed
feat(admin-ui): remove Server IP Address field & ldap test action #1266
1 parent 92cb845 commit ade6657

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

admin-ui/plugins/jans-link/components/Tabs/ConfigurationTab.js

-10
Original file line numberDiff line numberDiff line change
@@ -230,16 +230,6 @@ const ConfigurationTab = () => {
230230
value={formik.values.keepExternalPerson}
231231
/>
232232
</Col>
233-
<Col sm={12}>
234-
<GluuInputRow
235-
label='fields.server_ip_address'
236-
name='serverIpAddress'
237-
value={formik.values.serverIpAddress}
238-
formik={formik}
239-
lsize={3}
240-
rsize={9}
241-
/>
242-
</Col>
243233
<Col sm={12}>
244234
<GluuInputRow
245235
label='fields.polling_interval_mins'

admin-ui/plugins/jans-link/components/Tabs/SourceBackendServersTab.js

+1-26
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import React, { useContext, useEffect, useState } from 'react'
22
import { ThemeContext } from 'Context/theme/themeContext'
33
import { useDispatch, useSelector } from 'react-redux'
44
import { useFormik } from 'formik'
5-
import { Row, Col, Form, FormGroup } from 'Components'
6-
import { Button } from 'Components'
5+
import { Row, Col, Form, FormGroup, Button } from 'Components'
76
import GluuProperties from 'Routes/Apps/Gluu/GluuProperties'
87
import GluuLabel from 'Routes/Apps/Gluu/GluuLabel'
98
import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
@@ -17,10 +16,6 @@ import { putCacheRefreshConfiguration } from 'Plugins/jans-link/redux/features/C
1716
import { useTranslation } from 'react-i18next'
1817
import GluuCommitDialog from 'Routes/Apps/Gluu/GluuCommitDialog'
1918
import { buildPayload } from 'Utils/PermChecker'
20-
import {
21-
testLdap,
22-
resetTestLdap,
23-
} from 'Plugins/services/redux/features/ldapSlice'
2419
import GluuLoader from 'Routes/Apps/Gluu/GluuLoader'
2520
import { updateToast } from 'Redux/features/toastSlice'
2621

@@ -176,18 +171,6 @@ const SourceBackendServersTab = () => {
176171
dispatch(putCacheRefreshConfiguration({ action: userAction }))
177172
}
178173

179-
function checkLdapConnection() {
180-
const testPromise = new Promise(function (resolve, reject) {
181-
dispatch(resetTestLdap())
182-
resolve()
183-
})
184-
185-
testPromise.then(() => {
186-
setTestRunning(true)
187-
dispatch(testLdap({ data: formik.values.sourceConfigs }))
188-
})
189-
}
190-
191174
useEffect(() => {
192175
if (testStatus === null || !testRunning) {
193176
return
@@ -229,14 +212,6 @@ const SourceBackendServersTab = () => {
229212
</Button>
230213
)}
231214
</Box>
232-
{addSourceLdapServer && (
233-
<Button
234-
color={`primary-${selectedTheme}`}
235-
onClick={checkLdapConnection}
236-
>
237-
{t('fields.test')}
238-
</Button>
239-
)}
240215
</Box>
241216
{addSourceLdapServer && (
242217
<>

0 commit comments

Comments
 (0)