mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat: Remove PostHog event calls (#6915)
This commit is contained in:
@@ -138,6 +138,7 @@ import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useRootStore } from '@/stores/n8nRoot.store';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { createEventBus } from 'n8n-design-system/utils';
|
||||
import { usePostHog } from '@/stores';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'PersonalizationModal',
|
||||
@@ -166,7 +167,7 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores(useRootStore, useSettingsStore, useUIStore, useUsersStore),
|
||||
...mapStores(useRootStore, useSettingsStore, useUIStore, useUsersStore, usePostHog),
|
||||
survey() {
|
||||
const survey: IFormInputs = [
|
||||
{
|
||||
@@ -645,6 +646,8 @@ export default defineComponent({
|
||||
|
||||
await this.usersStore.submitPersonalizationSurvey(survey as IPersonalizationLatestVersion);
|
||||
|
||||
this.posthogStore.setMetadata(survey, 'user');
|
||||
|
||||
if (Object.keys(values).length === 0) {
|
||||
this.closeDialog();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user