cleared execution data after changing a scenario, added logic to change scenario execution from url

This commit is contained in:
2024-11-26 12:02:07 +01:00
parent 112513182e
commit 42bfe0d3cb
3 changed files with 35 additions and 13 deletions

View File

@@ -178,6 +178,8 @@ watch(() => route.params.id, fetchScenario);
//Function to fetch scenarios
function fetchScenario(id) {
data_loaded.value = false;
formData.value = {};
loading.value = true;
axios.get(`/scenarios/${id}`)
.then(response => {