Update downloadFile and resetStore
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user