@@ -2,8 +2,7 @@ import React, { useContext, useEffect, useState } from 'react'
2
2
import { ThemeContext } from 'Context/theme/themeContext'
3
3
import { useDispatch , useSelector } from 'react-redux'
4
4
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'
7
6
import GluuProperties from 'Routes/Apps/Gluu/GluuProperties'
8
7
import GluuLabel from 'Routes/Apps/Gluu/GluuLabel'
9
8
import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
@@ -17,10 +16,6 @@ import { putCacheRefreshConfiguration } from 'Plugins/jans-link/redux/features/C
17
16
import { useTranslation } from 'react-i18next'
18
17
import GluuCommitDialog from 'Routes/Apps/Gluu/GluuCommitDialog'
19
18
import { buildPayload } from 'Utils/PermChecker'
20
- import {
21
- testLdap ,
22
- resetTestLdap ,
23
- } from 'Plugins/services/redux/features/ldapSlice'
24
19
import GluuLoader from 'Routes/Apps/Gluu/GluuLoader'
25
20
import { updateToast } from 'Redux/features/toastSlice'
26
21
@@ -176,18 +171,6 @@ const SourceBackendServersTab = () => {
176
171
dispatch ( putCacheRefreshConfiguration ( { action : userAction } ) )
177
172
}
178
173
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
-
191
174
useEffect ( ( ) => {
192
175
if ( testStatus === null || ! testRunning ) {
193
176
return
@@ -229,14 +212,6 @@ const SourceBackendServersTab = () => {
229
212
</ Button >
230
213
) }
231
214
</ Box >
232
- { addSourceLdapServer && (
233
- < Button
234
- color = { `primary-${ selectedTheme } ` }
235
- onClick = { checkLdapConnection }
236
- >
237
- { t ( 'fields.test' ) }
238
- </ Button >
239
- ) }
240
215
</ Box >
241
216
{ addSourceLdapServer && (
242
217
< >
0 commit comments