updates exec list with app change

This commit is contained in:
Florinda
2024-12-04 15:11:50 +01:00
parent 207e41c36d
commit 9f2c8d39a0

View File

@@ -5,6 +5,7 @@ import { useRouter } from 'vue-router';
import { LoadingStore } from '../stores/LoadingStore.js';
import { ScenarioExecutionStore } from '../stores/ScenarioExecutionStore.js';
import { ScenarioStore } from '../stores/ScenarioStore.js';
import { UserPrefStore } from '../stores/UserPrefStore.js';
@@ -22,6 +23,7 @@ const router = useRouter();
const props = defineProps(['page']);
const userPrefStore = UserPrefStore();
const scenario_store = ScenarioStore();
const scenario_execution_store = ScenarioExecutionStore();
const loadingStore = LoadingStore()
const selectedApp = ref(userPrefStore.getSelApp);
@@ -35,6 +37,7 @@ async function updateApplication() {
await userPrefStore.setSelectedApp(selectedApp.value);
scenario_store.fetchApplicationScenarios();
scenario_execution_store.fetchScenariosExecution();
}