refactor(editor): Detangle cloudPlan store (no-changelog) (#16706)

This commit is contained in:
Alex Grozav
2025-06-27 10:15:00 +03:00
committed by GitHub
parent 2e78771ebf
commit 067eff6073
10 changed files with 98 additions and 144 deletions

View File

@@ -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) {