File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
redisinsight/ui/src/pages/home/components/form Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,19 @@ const TlsDetails = (props: Props) => {
43
43
const [ activeCertId , setActiveCertId ] = useState < Nullable < string > > ( null )
44
44
45
45
const handleDeleteCaCert = ( id : string ) => {
46
- dispatch ( deleteCaCertificateAction ( id , handleClickDeleteCert ) )
46
+ dispatch ( deleteCaCertificateAction ( id , ( ) => handleClickDeleteCert ( 'CA' ) ) )
47
47
}
48
48
49
49
const handleDeleteClientCert = ( id : string ) => {
50
- dispatch ( deleteClientCertAction ( id , handleClickDeleteCert ) )
50
+ dispatch ( deleteClientCertAction ( id , ( ) => handleClickDeleteCert ( 'Client' ) ) )
51
51
}
52
52
53
- const handleClickDeleteCert = ( ) => {
53
+ const handleClickDeleteCert = ( certificateType : 'Client' | 'CA' ) => {
54
54
sendEventTelemetry ( {
55
55
event : TelemetryEvent . CONFIG_DATABASES_CERTIFICATE_REMOVED ,
56
- eventData : { } ,
56
+ eventData : {
57
+ certificateType,
58
+ } ,
57
59
} )
58
60
}
59
61
You can’t perform that action at this time.
0 commit comments