mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(editor): Detangle cloudPlan store (no-changelog) (#16706)
This commit is contained in:
@@ -252,7 +252,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
const trackTemplatesClick = () => {
|
||||
telemetry.track('User clicked on templates', {
|
||||
role: usersStore.currentUserCloudInfo?.role,
|
||||
role: cloudPlanStore.currentUserCloudInfo?.role,
|
||||
active_workflow_count: workflowsStore.activeWorkflows.length,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -4,12 +4,13 @@ import { useToast } from '@/composables/useToast';
|
||||
import { i18n as locale } from '@n8n/i18n';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { computed } from 'vue';
|
||||
import { useCloudPlanStore } from '@/stores/cloudPlan.store';
|
||||
|
||||
const toast = useToast();
|
||||
const cloudPlanStore = useCloudPlanStore();
|
||||
|
||||
const userEmail = computed(() => {
|
||||
const { currentUserCloudInfo } = useUsersStore();
|
||||
return currentUserCloudInfo?.email ?? '';
|
||||
return cloudPlanStore.currentUserCloudInfo?.email ?? '';
|
||||
});
|
||||
|
||||
async function onConfirmEmailClick() {
|
||||
|
||||
Reference in New Issue
Block a user