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:
Faisal Amir 2025-01-02 21:04:09 +07:00 committed by GitHub
parent 33bb35cb99
commit 538a6bf923
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -21,11 +21,11 @@
{
"key": "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",
"controllerProps": {
"value": "",
"placeholder": "4"
"placeholder": "Number of CPU threads"
}
},
{

View File

@ -123,6 +123,7 @@ const BaseLayout = () => {
if (isAllowed) {
posthog.opt_in_capturing()
} else {
posthog.capture('user_opt_out', { timestamp: new Date() })
posthog.opt_out_capturing()
}
}