diff --git a/src/views/pages/OldScenarioExec.vue b/src/views/pages/OldScenarioExec.vue index 13ac85f..ce2015c 100644 --- a/src/views/pages/OldScenarioExec.vue +++ b/src/views/pages/OldScenarioExec.vue @@ -297,10 +297,10 @@ const showFileContent = (base64String, type) => { const jsonObject = JSON.parse(textContent); // Parse JSON fileContent.value = JSON.stringify(jsonObject, null, 2); // Formatta JSON } else { - fileContent.value = 'Tipo di file non supportato.'; + fileContent.value = 'File type not supported.'; } } catch (error) { - fileContent.value = 'Errore durante la decodifica o il parsing del file.'; + fileContent.value = 'Error while parsing the file.'; console.error(error); } }; diff --git a/src/views/pages/ScenarioExec.vue b/src/views/pages/ScenarioExec.vue index d4e2297..741fbec 100644 --- a/src/views/pages/ScenarioExec.vue +++ b/src/views/pages/ScenarioExec.vue @@ -36,7 +36,7 @@ auto :showUploadButton="false" :showCancelButton="false" - :maxFileSize="20971520" + :maxFileSize="52428800" :invalidFileSizeMessage="'Invalid file size, file size should be smaller than 20 MB'" v-model:files="uploadedFiles" @before-send="onBeforeSend" @@ -100,7 +100,7 @@ auto :showUploadButton="false" :showCancelButton="false" - :maxFileSize="20971520" + :maxFileSize="52428800" v-model:files="uploadedFiles" @before-send="onBeforeSend" > @@ -332,6 +332,7 @@ const uploadedFiles = ref([]); const numberPrFiles = ref(0); const acceptedFormats = ref('.docx'); // :url="`http://localhost:8081/uploadListFiles/${folderName}`" +const errored_execution = ref(false); // Stato per l'ID univoco della cartella const uniqueFolderId = ref(generateUniqueId()); @@ -525,7 +526,7 @@ const openDebug = () => { }; const pollBackendAPI = () => { - const errored_execution = ref(false); + errored_execution.value = false; axios.get('/scenarios/getExecutionProgress/' + exec_id.value).then((response) => { if (response.data.status == 'OK' || response.data.status == 'ERROR') { console.log('Condition met, stopping polling.');