mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
chore: check analytics issue [INS-4212] (#7775)
This commit is contained in:
parent
cf70af683a
commit
9a28eb3268
@ -1,5 +1,6 @@
|
||||
export enum SegmentEvent {
|
||||
appStarted = 'App Started',
|
||||
analyticsDisabled = 'Analytics Disabled',
|
||||
collectionCreate = 'Collection Created',
|
||||
dataExport = 'Data Exported',
|
||||
dataImport = 'Data Imported',
|
||||
|
@ -1269,6 +1269,9 @@ export const deleteClientCertificateAction: ActionFunction = async ({ request })
|
||||
|
||||
export const updateSettingsAction: ActionFunction = async ({ request }) => {
|
||||
const patch = await request.json();
|
||||
if (patch.hasOwnProperty('enableAnalytics') && !patch.enableAnalytics) {
|
||||
window.main.trackSegmentEvent({ event: SegmentEvent.analyticsDisabled });
|
||||
}
|
||||
await models.settings.patch(patch);
|
||||
return null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user