bug exec scenario select app + updates history page

This commit is contained in:
Florinda
2024-11-04 11:22:28 +01:00
parent dea200613f
commit 9479f99d74
2 changed files with 10 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ import { LoadingStore } from '../stores/LoadingStore.js';
import { ScenarioStore } from '../stores/ScenarioStore.js';
import { UserPrefStore } from '../stores/UserPrefStore.js';
import { ref, watch } from 'vue';
import { computed, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import AppConfigurator from './AppConfigurator.vue';
import AppProfileMenu from './AppProfileMenu.vue';
@@ -28,6 +28,10 @@ const selectedApp = ref(userPrefStore.getSelApp);
const { onMenuToggle, toggleDarkMode, isDarkTheme } = useLayout();
const isDropdownDisabled = computed(() => {
return route.path === '/projects' || /^\/scenario\/exec\/.+/.test(route.path);
});
async function updateApplication() {
await userPrefStore.setSelectedApp(selectedApp.value);
@@ -110,7 +114,7 @@ watch(() => userPrefStore.getSelApp, appUpdated, { immediate: true });
class="dropdown-list menu-list"
@change="updateApplication()"
:disabled="route.path === '/projects'"
:disabled="isDropdownDisabled"
/>
<button

View File

@@ -58,17 +58,17 @@
<Column field="execSharedMap.user_input.selected_application" header="Application Input">
</Column>
<Column field="" header="Start Date">
<Column field="startDate" header="Start Date">
</Column>
<Column field="" header="End Date">
<Column field="endDate" header="End Date">
</Column>
<Column field="" header="Model AI">
<Column field="scenario.aiModel.apiProvider" header="Model AI">
</Column>
<Column field="" header="Version">
<Column field="scenario.aiModel.model" header="Version">
</Column>
<Column header="Output Type">