@@ -33,13 +33,13 @@ const CacheRefreshTab = () => {
33
33
snapshotMaxCount = null ,
34
34
ldapSearchSizeLimit = null ,
35
35
keepExternalPerson = null ,
36
- cacheRefreshServerIpAddress = null ,
37
- vdsCacheRefreshPollingInterval = null ,
38
- vdsCacheRefreshEnabled = null ,
36
+ serverIpAddress = null ,
37
+ pollingInterval = null ,
38
+ linkEnabled = null ,
39
39
attributeMapping = [ ] ,
40
- vdsCacheRefreshProblemCount = null ,
41
- vdsCacheRefreshLastUpdateCount = null ,
42
- vdsCacheRefreshLastUpdate = null ,
40
+ problemCount = null ,
41
+ lastUpdateCount = null ,
42
+ lastUpdate = null ,
43
43
} = useSelector ( ( state ) => state . cacheRefreshReducer . configuration )
44
44
45
45
const initialValues = {
@@ -48,13 +48,13 @@ const CacheRefreshTab = () => {
48
48
snapshotMaxCount,
49
49
ldapSearchSizeLimit,
50
50
keepExternalPerson,
51
- cacheRefreshServerIpAddress ,
52
- vdsCacheRefreshPollingInterval ,
53
- vdsCacheRefreshEnabled ,
51
+ serverIpAddress ,
52
+ pollingInterval ,
53
+ linkEnabled ,
54
54
attributeMapping,
55
- vdsCacheRefreshProblemCount ,
56
- vdsCacheRefreshLastUpdateCount ,
57
- vdsCacheRefreshLastUpdate ,
55
+ problemCount ,
56
+ lastUpdateCount ,
57
+ lastUpdate ,
58
58
}
59
59
60
60
const formik = useFormik ( {
@@ -102,7 +102,7 @@ const CacheRefreshTab = () => {
102
102
: [ ] ,
103
103
} ,
104
104
} )
105
- console . log ( `userAction` , userAction )
105
+
106
106
dispatch (
107
107
putCacheRefreshConfiguration ( { action : userAction } )
108
108
)
@@ -121,19 +121,19 @@ const CacheRefreshTab = () => {
121
121
< Col sm = { 12 } >
122
122
< Row >
123
123
< GluuLabel label = { 'fields.last_run' } size = { 3 } />
124
- < Col sm = { 9 } > { formik . values . vdsCacheRefreshLastUpdate } </ Col >
124
+ < Col sm = { 9 } > { formik . values . lastUpdate } </ Col >
125
125
</ Row >
126
126
</ Col >
127
127
< Col sm = { 12 } >
128
128
< Row className = 'my-3' >
129
129
< GluuLabel label = { 'fields.updates_at_last_run' } size = { 3 } />
130
- < Col sm = { 9 } > { formik . values . vdsCacheRefreshLastUpdateCount } </ Col >
130
+ < Col sm = { 9 } > { formik . values . lastUpdateCount } </ Col >
131
131
</ Row >
132
132
</ Col >
133
133
< Col sm = { 12 } >
134
134
< Row className = 'mb-3' >
135
135
< GluuLabel label = { 'fields.problems_at_last_run' } size = { 3 } />
136
- < Col sm = { 9 } > { formik . values . vdsCacheRefreshProblemCount } </ Col >
136
+ < Col sm = { 9 } > { formik . values . problemCount } </ Col >
137
137
</ Row >
138
138
</ Col >
139
139
< Col sm = { 12 } >
@@ -232,8 +232,8 @@ const CacheRefreshTab = () => {
232
232
< Col sm = { 12 } >
233
233
< GluuInputRow
234
234
label = 'fields.server_ip_address'
235
- name = 'cacheRefreshServerIpAddress '
236
- value = { formik . values . cacheRefreshServerIpAddress }
235
+ name = 'serverIpAddress '
236
+ value = { formik . values . serverIpAddress }
237
237
formik = { formik }
238
238
lsize = { 3 }
239
239
rsize = { 9 }
@@ -242,9 +242,9 @@ const CacheRefreshTab = () => {
242
242
< Col sm = { 12 } >
243
243
< GluuInputRow
244
244
label = 'fields.polling_interval_mins'
245
- name = 'vdsCacheRefreshPollingInterval '
245
+ name = 'pollingInterval '
246
246
type = 'number'
247
- value = { formik . values . vdsCacheRefreshPollingInterval }
247
+ value = { formik . values . pollingInterval }
248
248
formik = { formik }
249
249
lsize = { 3 }
250
250
rsize = { 9 }
@@ -264,13 +264,13 @@ const CacheRefreshTab = () => {
264
264
< Col sm = { 12 } >
265
265
< GluuCheckBoxRow
266
266
label = 'fields.cache_refresh'
267
- name = 'vdsCacheRefreshEnabled '
267
+ name = 'linkEnabled '
268
268
handleOnChange = { ( e ) => {
269
- formik . setFieldValue ( 'vdsCacheRefreshEnabled ' , e . target . checked )
269
+ formik . setFieldValue ( 'linkEnabled ' , e . target . checked )
270
270
} }
271
271
lsize = { 3 }
272
272
rsize = { 9 }
273
- value = { formik . values . vdsCacheRefreshEnabled }
273
+ value = { formik . values . linkEnabled }
274
274
/>
275
275
</ Col >
276
276
</ FormGroup >
0 commit comments