fix: send event opt out (#4390)
* fux: send event opt out from button deny * chore: fix copy * chore: update placeholder
This commit is contained in:
parent
33bb35cb99
commit
538a6bf923
@ -21,11 +21,11 @@
|
|||||||
{
|
{
|
||||||
"key": "cpu_threads",
|
"key": "cpu_threads",
|
||||||
"title": "CPU Threads",
|
"title": "CPU Threads",
|
||||||
"description": "The number of threads to use for inferencing (CPU MODE ONLY)",
|
"description": "The number of CPU threads to use (when in CPU mode)",
|
||||||
"controllerType": "input",
|
"controllerType": "input",
|
||||||
"controllerProps": {
|
"controllerProps": {
|
||||||
"value": "",
|
"value": "",
|
||||||
"placeholder": "4"
|
"placeholder": "Number of CPU threads"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -123,6 +123,7 @@ const BaseLayout = () => {
|
|||||||
if (isAllowed) {
|
if (isAllowed) {
|
||||||
posthog.opt_in_capturing()
|
posthog.opt_in_capturing()
|
||||||
} else {
|
} else {
|
||||||
|
posthog.capture('user_opt_out', { timestamp: new Date() })
|
||||||
posthog.opt_out_capturing()
|
posthog.opt_out_capturing()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user