Added logic for KT scenario

This commit is contained in:
2025-05-20 15:16:16 +02:00
parent 2807115239
commit 96c523dd77
2 changed files with 14 additions and 15 deletions

View File

@@ -35,7 +35,7 @@
<div class="box p-4 border rounded-md shadow-sm" style="background-color: white">
<table class="table-auto w-full border-collapse border border-gray-300">
<tbody>
<tr v-for="(input, index) in inputs" :key="index">
<tr v-for="(input, index) in filteredInputs" :key="index">
<th v-if="index === 'MultiFileUpload'" class="border border-gray-300 px-4 py-2">Files Uploaded</th>
<th v-else-if="index === 'SingleFileUpload'" class="border border-gray-300 px-4 py-2 bg-gray-500 text-white">Parameter</th>
<th v-else class="border border-gray-300 px-4 py-2">
@@ -152,7 +152,7 @@ import { MdPreview } from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
import ProgressSpinner from 'primevue/progressspinner';
import { useToast } from 'primevue/usetoast';
import { onMounted, ref } from 'vue';
import { onMounted, ref, computed} from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { JellyfishLoader } from 'vue3-spinner';
import { ScenarioService } from '../../service/ScenarioService.js';
@@ -233,6 +233,10 @@ const retrieveScenarioExec = (id) => {
}
});
};
const filteredInputs = computed(() => {
const { input_multiselect_id, ...rest } = inputs.value;
return rest;
});
const extractFiles = async (base64String, type, zip) => {
try {