Skip to content

Commit 79ad21d

Browse files
committed
Add certificate type in telemetry payload
1 parent a7cc5ba commit 79ad21d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

redisinsight/ui/src/pages/home/components/form/TlsDetails.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,19 @@ const TlsDetails = (props: Props) => {
4343
const [activeCertId, setActiveCertId] = useState<Nullable<string>>(null)
4444

4545
const handleDeleteCaCert = (id: string) => {
46-
dispatch(deleteCaCertificateAction(id, handleClickDeleteCert))
46+
dispatch(deleteCaCertificateAction(id, () => handleClickDeleteCert('CA')))
4747
}
4848

4949
const handleDeleteClientCert = (id: string) => {
50-
dispatch(deleteClientCertAction(id, handleClickDeleteCert))
50+
dispatch(deleteClientCertAction(id, () => handleClickDeleteCert('Client')))
5151
}
5252

53-
const handleClickDeleteCert = () => {
53+
const handleClickDeleteCert = (certificateType: 'Client' | 'CA') => {
5454
sendEventTelemetry({
5555
event: TelemetryEvent.CONFIG_DATABASES_CERTIFICATE_REMOVED,
56-
eventData: {},
56+
eventData: {
57+
certificateType,
58+
},
5759
})
5860
}
5961

0 commit comments

Comments
 (0)