Fix name OldScenarioExec
This commit is contained in:
@@ -38,6 +38,9 @@
|
||||
<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-if="index === 'input_multiselect_name'">
|
||||
{{ (scenario.inputs && Array.isArray(scenario.inputs) ? scenario.inputs.find((i) => i.name === 'input_multiselect')?.label : null)}}
|
||||
</th>
|
||||
<th v-else class="border border-gray-300 px-4 py-2">
|
||||
{{ index.replace(/_/g, ' ').replace(/\b\w/g, (char) => char.toUpperCase()) }}
|
||||
</th>
|
||||
@@ -71,7 +74,6 @@
|
||||
</div>
|
||||
</Panel>
|
||||
|
||||
|
||||
<div v-if="!chat_enabled" class="mt-4">
|
||||
<Panel class="mt-6">
|
||||
<template #header>
|
||||
@@ -143,6 +145,7 @@
|
||||
|
||||
<script setup>
|
||||
import ChangeImpactOutputViewer from '@/components/ChangeImpactOutputViewer.vue';
|
||||
import ChatClient from '@/components/ChatClient.vue';
|
||||
import { LoadingStore } from '@/stores/LoadingStore.js';
|
||||
import axios from 'axios';
|
||||
import JsonEditorVue from 'json-editor-vue';
|
||||
@@ -152,13 +155,12 @@ 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, computed} from 'vue';
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { JellyfishLoader } from 'vue3-spinner';
|
||||
import { ScenarioService } from '../../service/ScenarioService.js';
|
||||
import { ScenarioExecutionStore } from '../../stores/ScenarioExecutionStore.js';
|
||||
import { UserPrefStore } from '../../stores/UserPrefStore.js';
|
||||
import ChatClient from '@/components/ChatClient.vue';
|
||||
|
||||
const loadingStore = LoadingStore();
|
||||
const router = useRouter();
|
||||
@@ -483,7 +485,7 @@ async function updateRating(newRating) {
|
||||
life: 3000 // Durata della notifica in millisecondi
|
||||
});
|
||||
} else {
|
||||
console.error("Error while updating rating", response.data);
|
||||
console.error('Error while updating rating', response.data);
|
||||
toast.add({
|
||||
severity: 'error', // Tipo di notifica (errore)
|
||||
summary: 'Error', // Titolo della notifica
|
||||
|
||||
Reference in New Issue
Block a user