@@ -25,7 +25,6 @@ import * as Yup from 'yup'
25
25
import { SIMPLE_PASSWORD_AUTH } from 'Plugins/auth-server/common/Constants'
26
26
import { getScripts } from 'Redux/features/initSlice'
27
27
import GluuLoader from 'Routes/Apps/Gluu/GluuLoader'
28
- import { getAcrsConfig } from 'Plugins/auth-server/redux/features/acrSlice'
29
28
30
29
const levels = [ 1 , 5 , 10 , 20 ]
31
30
@@ -35,7 +34,6 @@ function SettingsPage() {
35
34
const loadingScripts = useSelector (
36
35
( state ) => state . initReducer . loadingScripts
37
36
)
38
- const loadingAcr = useSelector ( ( state ) => state . acrReducer . loading )
39
37
const loadingConfig = useSelector ( ( state ) => state . authReducer ?. loadingConfig )
40
38
const theme = useContext ( ThemeContext )
41
39
const selectedTheme = theme . state . theme
@@ -45,13 +43,12 @@ function SettingsPage() {
45
43
SetTitle ( t ( 'titles.application_settings' ) )
46
44
47
45
useEffect ( ( ) => {
48
- dispatch ( getAcrsConfig ( ) )
49
46
dispatch ( getScripts ( { action : { } } ) )
50
47
} , [ ] )
51
48
52
49
return (
53
50
< React . Fragment >
54
- < GluuLoader blocking = { loadingScripts || loadingConfig || loadingAcr } >
51
+ < GluuLoader blocking = { loadingScripts || loadingConfig } >
55
52
< Card style = { applicationStyle . mainCard } >
56
53
< CardBody >
57
54
< FormGroup row >
@@ -115,7 +112,7 @@ function SettingsPage() {
115
112
</ Col >
116
113
</ FormGroup >
117
114
118
- { ! loadingScripts && ! loadingAcr && < SettingsForm /> }
115
+ { ! loadingScripts && < SettingsForm /> }
119
116
</ CardBody >
120
117
</ Card >
121
118
</ GluuLoader >
@@ -128,10 +125,10 @@ function SettingsForm() {
128
125
const theme = useContext ( ThemeContext )
129
126
const selectedTheme = theme . state . theme
130
127
const loadingConfig = useSelector ( ( state ) => state . authReducer ?. loadingConfig )
128
+ const acrValues = useSelector ( ( state ) => state . authReducer ?. config ?. acrValues )
131
129
const sessionTimeout =
132
130
useSelector ( ( state ) => state . authReducer ?. config ?. sessionTimeoutInMins ) || 5
133
131
const scripts = useSelector ( ( state ) => state . initReducer . scripts )
134
- const acrs = useSelector ( ( state ) => state . acrReducer . acrReponse )
135
132
const dispatch = useDispatch ( )
136
133
137
134
const authScripts = scripts
@@ -144,7 +141,7 @@ function SettingsForm() {
144
141
const formik = useFormik ( {
145
142
initialValues : {
146
143
sessionTimeoutInMins : sessionTimeout ,
147
- acrValues : acrs ?. defaultAcr || '' ,
144
+ acrValues : acrValues || '' ,
148
145
} ,
149
146
onSubmit : ( values ) => {
150
147
dispatch ( putConfigWorker ( values ) )
@@ -178,9 +175,9 @@ function SettingsForm() {
178
175
< FormGroup row >
179
176
< GluuLabel
180
177
size = { 4 }
181
- doc_category = 'json_properties '
182
- doc_entry = { 'defaultAcr ' }
183
- label = { t ( 'fields.default_acr ' ) }
178
+ doc_category = 'settings '
179
+ doc_entry = { 'adminui_default_acr ' }
180
+ label = { t ( 'fields.adminui_default_acr ' ) }
184
181
/>
185
182
< Col sm = { 8 } >
186
183
< InputGroup >
0 commit comments