mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(editor): Detangle cloudPlan store (no-changelog) (#16706)
This commit is contained in:
@@ -11,7 +11,6 @@ import { useTelemetry } from '@/composables/useTelemetry';
|
||||
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useCloudPlanStore } from '@/stores/cloudPlan.store';
|
||||
import { useSSOStore } from '@/stores/sso.store';
|
||||
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
@@ -27,7 +26,6 @@ export type MfaCodeOrMfaRecoveryCode = Pick<LoginRequestDto, 'mfaCode' | 'mfaRec
|
||||
|
||||
const usersStore = useUsersStore();
|
||||
const settingsStore = useSettingsStore();
|
||||
const cloudPlanStore = useCloudPlanStore();
|
||||
const ssoStore = useSSOStore();
|
||||
|
||||
const route = useRoute();
|
||||
@@ -136,13 +134,6 @@ const login = async (form: LoginRequestDto) => {
|
||||
mfaRecoveryCode: form.mfaRecoveryCode,
|
||||
});
|
||||
loading.value = false;
|
||||
if (settingsStore.isCloudDeployment) {
|
||||
try {
|
||||
await cloudPlanStore.checkForCloudPlanData();
|
||||
} catch (error) {
|
||||
console.warn('Failed to check for cloud plan data', error);
|
||||
}
|
||||
}
|
||||
await settingsStore.getSettings();
|
||||
|
||||
if (settingsStore.activeModules.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user