Skip to content

Commit

Permalink
feat(admin-ui): remove Server IP Address field & ldap test action #1266
Browse files Browse the repository at this point in the history
  • Loading branch information
jv18creator committed Aug 9, 2023
1 parent 92cb845 commit ade6657
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
10 changes: 0 additions & 10 deletions admin-ui/plugins/jans-link/components/Tabs/ConfigurationTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,6 @@ const ConfigurationTab = () => {
value={formik.values.keepExternalPerson}
/>
</Col>
<Col sm={12}>
<GluuInputRow
label='fields.server_ip_address'
name='serverIpAddress'
value={formik.values.serverIpAddress}
formik={formik}
lsize={3}
rsize={9}
/>
</Col>
<Col sm={12}>
<GluuInputRow
label='fields.polling_interval_mins'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import React, { useContext, useEffect, useState } from 'react'
import { ThemeContext } from 'Context/theme/themeContext'
import { useDispatch, useSelector } from 'react-redux'
import { useFormik } from 'formik'
import { Row, Col, Form, FormGroup } from 'Components'
import { Button } from 'Components'
import { Row, Col, Form, FormGroup, Button } from 'Components'
import GluuProperties from 'Routes/Apps/Gluu/GluuProperties'
import GluuLabel from 'Routes/Apps/Gluu/GluuLabel'
import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
Expand All @@ -17,10 +16,6 @@ import { putCacheRefreshConfiguration } from 'Plugins/jans-link/redux/features/C
import { useTranslation } from 'react-i18next'
import GluuCommitDialog from 'Routes/Apps/Gluu/GluuCommitDialog'
import { buildPayload } from 'Utils/PermChecker'
import {
testLdap,
resetTestLdap,
} from 'Plugins/services/redux/features/ldapSlice'
import GluuLoader from 'Routes/Apps/Gluu/GluuLoader'
import { updateToast } from 'Redux/features/toastSlice'

Expand Down Expand Up @@ -176,18 +171,6 @@ const SourceBackendServersTab = () => {
dispatch(putCacheRefreshConfiguration({ action: userAction }))
}

function checkLdapConnection() {
const testPromise = new Promise(function (resolve, reject) {
dispatch(resetTestLdap())
resolve()
})

testPromise.then(() => {
setTestRunning(true)
dispatch(testLdap({ data: formik.values.sourceConfigs }))
})
}

useEffect(() => {
if (testStatus === null || !testRunning) {
return
Expand Down Expand Up @@ -229,14 +212,6 @@ const SourceBackendServersTab = () => {
</Button>
)}
</Box>
{addSourceLdapServer && (
<Button
color={`primary-${selectedTheme}`}
onClick={checkLdapConnection}
>
{t('fields.test')}
</Button>
)}
</Box>
{addSourceLdapServer && (
<>
Expand Down

0 comments on commit ade6657

Please sign in to comment.