update exec view

This commit is contained in:
Florinda
2025-02-26 17:08:12 +01:00
parent 73408efa08
commit d2aaa83d81
3 changed files with 13 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ function updateApplicationsMenu() {
//Raggruppa gli scenari per categoria (solo se type non è null)
selectedApp.available_scenarios.forEach(app => {
if (app.type) {
const type = app.type;
const type = app.type.trim();
if (!groupedScenarios[type]) {
groupedScenarios[type] = [];
}

View File

@@ -116,11 +116,11 @@
<div v-else-if="loadingStore.exectuion_loading && loadingStore.getExecIdLoading===execution_id">
<div class="flex justify-center mt-4">
<jellyfish-loader :loading="loadingStore.exectuion_loading" scale="1" color="#A100FF" />
</div>
</div>
</div>
<div v-else>
<div v-if="fileType == 'FILE'">
<ul>
<div v-if="fileType == 'FILE' && exec_scenario.execSharedMap.status!=null && exec_scenario.execSharedMap.status==='DONE'">
<ul class="file-list">
<li class="file-item">
sf_document-{{execution_id}}
<Button
@@ -131,6 +131,7 @@
/>
</li>
</ul>
</div>
<div v-else-if="fileType == 'MARKDOWN'">
<div v-html="fileContent" class="markdown-content"></div>

View File

@@ -530,9 +530,9 @@ watch(() => route.params.id, fetchScenario);
// Controlla se l'array `inputs` contiene un elemento con `name = 'MultiFileUpload'`
if (scenario.value.inputs.some((input) => input.name === 'MultiFileUpload')) {
console.log('Im in');
// Accedi al primo step e controlla se esiste l'attributo `codegenie_output_type`
if(response.data.status == 'OK' ){
// Accedi al primo step e controlla se esiste l'attributo `codegenie_output_type`
const firstStep = scenario.value.steps[0];
if (firstStep?.attributes?.['codegenie_output_type']) {
// Controlla se `codegenie_output_type` è uguale a 'FILE'
@@ -557,6 +557,12 @@ if (scenario.value.inputs.some((input) => input.name === 'MultiFileUpload')) {
showFileContent(scenario_output.value, 'JSON')
}
}
}else{
console.log("Error in execution");
}
}