Update downloadFile and resetStore

This commit is contained in:
2025-07-10 17:19:38 +02:00
parent 461d8a3d62
commit 9d44b21868
4 changed files with 102 additions and 60 deletions

View File

@@ -80,6 +80,7 @@ import { useRouter } from 'vue-router';
import { LoadingStore } from '../../stores/LoadingStore.js';
import { UserPrefStore } from '../../stores/UserPrefStore.js';
import { ScenarioStore } from '../../stores/ScenarioStore.js';
import { ScenarioExecutionStore } from '../../stores/ScenarioExecutionStore.js';
const loadingStore = LoadingStore()
@@ -87,6 +88,7 @@ const userPrefStore = UserPrefStore();
const auth = useAuth();
const user = computed(() => auth.user());
const scenario_store = ScenarioStore();
const scenario_execution_store = ScenarioExecutionStore();
const router = useRouter()
@@ -125,6 +127,7 @@ const scenario_store = ScenarioStore();
try {
// Esegui l'update del progetto
scenario_store.resetStore();
scenario_execution_store.resetStore();
await userPrefStore.updateSelectedProject(project);
console.log('Progetto aggiornato e dati utente ricaricati');