@@ -41,6 +41,8 @@ const ConfigurationTab = () => {
41
41
problemCount = null ,
42
42
lastUpdateCount = null ,
43
43
lastUpdate = null ,
44
+ loggingLevel = [ ] ,
45
+ useSearchLimit = false
44
46
} = useSelector ( ( state ) => state . cacheRefreshReducer . configuration )
45
47
46
48
const initialValues = {
@@ -56,6 +58,8 @@ const ConfigurationTab = () => {
56
58
problemCount,
57
59
lastUpdateCount,
58
60
lastUpdate,
61
+ loggingLevel,
62
+ useSearchLimit
59
63
}
60
64
61
65
const formik = useFormik ( {
@@ -76,9 +80,6 @@ const ConfigurationTab = () => {
76
80
`${ t ( 'fields.mandatory_fields_required' ) } `
77
81
) ,
78
82
} ) ,
79
- setFieldValue : ( field ) => {
80
- delete values [ field ]
81
- } ,
82
83
onSubmit : ( ) => {
83
84
if ( isEmpty ( formik . errors ) ) {
84
85
toggle ( )
@@ -143,7 +144,7 @@ const ConfigurationTab = () => {
143
144
name = 'updateMethod'
144
145
value = { formik . values . updateMethod }
145
146
defaultValue = { formik . values . updateMethod }
146
- values = { [ 'copy' , ' VDS'] }
147
+ values = { [ { value : 'copy' , label : 'COPY' } , { value : 'vds' , label : ' VDS' } ] }
147
148
formik = { formik }
148
149
lsize = { 3 }
149
150
rsize = { 9 }
@@ -154,6 +155,18 @@ const ConfigurationTab = () => {
154
155
errorMessage = { formik . errors . updateMethod }
155
156
/>
156
157
</ Col >
158
+ < Col sm = { 12 } >
159
+ < GluuSelectRow
160
+ label = 'fields.logging_level'
161
+ name = 'loggingLevel'
162
+ value = { formik . values . loggingLevel }
163
+ defaultValue = { formik . values . loggingLevel }
164
+ values = { [ 'TRACE' , 'DEBUG' , 'INFO' , 'WARN' , 'ERROR' , 'FATAL' , 'OFF' ] }
165
+ formik = { formik }
166
+ lsize = { 3 }
167
+ rsize = { 9 }
168
+ />
169
+ </ Col >
157
170
< Col sm = { 12 } >
158
171
< Row >
159
172
< GluuLabel required label = 'fields.change_attribute_name_from_source_to_estination' size = { 3 } />
@@ -263,6 +276,18 @@ const ConfigurationTab = () => {
263
276
value = { formik . values . linkEnabled }
264
277
/>
265
278
</ Col >
279
+ < Col sm = { 12 } >
280
+ < GluuToogleRow
281
+ label = 'fields.use_search_limit'
282
+ name = 'useSearchLimit'
283
+ handler = { ( e ) => {
284
+ formik . setFieldValue ( 'useSearchLimit' , e . target . checked )
285
+ } }
286
+ lsize = { 3 }
287
+ rsize = { 9 }
288
+ value = { formik . values . useSearchLimit }
289
+ />
290
+ </ Col >
266
291
</ FormGroup >
267
292
< Row >
268
293
< Col >
0 commit comments