bug exec scenario select app + updates history page
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user