Yeet telemetry to text to cad endpoint (#4847)
yeet telemetry to text to cad endpoint
This commit is contained in:
@ -452,8 +452,7 @@ export function ToastPromptToEditCadSuccess({
|
|||||||
data-negative-button={'reject'}
|
data-negative-button={'reject'}
|
||||||
name={'Reject'}
|
name={'Reject'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// TODO add telemetry when we know how sendTelemetry is setup for /user/text-to-cad/
|
sendTelemetry(modelId, 'rejected', token).catch(reportRejection)
|
||||||
// sendTelemetry(modelId, 'rejected', token).catch(reportRejection)
|
|
||||||
codeManager.updateCodeEditor(oldCode)
|
codeManager.updateCodeEditor(oldCode)
|
||||||
kclManager.executeCode().catch(reportRejection)
|
kclManager.executeCode().catch(reportRejection)
|
||||||
toast.dismiss(toastId)
|
toast.dismiss(toastId)
|
||||||
@ -469,7 +468,6 @@ export function ToastPromptToEditCadSuccess({
|
|||||||
}}
|
}}
|
||||||
name="Accept"
|
name="Accept"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// TODO add telemetry when we know how sendTelemetry is setup for /user/text-to-cad/
|
|
||||||
sendTelemetry(modelId, 'accepted', token).catch(reportRejection)
|
sendTelemetry(modelId, 'accepted', token).catch(reportRejection)
|
||||||
toast.dismiss(toastId)
|
toast.dismiss(toastId)
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user