From 1349d27610df9c18bdc66358af88af83418317c2 Mon Sep 17 00:00:00 2001
From: Dannon Baker
Date: Wed, 8 Jan 2025 23:20:32 -0500
Subject: [PATCH] Only show error wizard when llm api is configured
---
.../DatasetInformation/DatasetError.vue | 35 +++++++++++--------
1 file changed, 20 insertions(+), 15 deletions(-)
diff --git a/client/src/components/DatasetInformation/DatasetError.vue b/client/src/components/DatasetInformation/DatasetError.vue
index cbe9f3e40189..22a807219ae2 100644
--- a/client/src/components/DatasetInformation/DatasetError.vue
+++ b/client/src/components/DatasetInformation/DatasetError.vue
@@ -9,6 +9,7 @@ import { computed, onMounted, ref } from "vue";
import { GalaxyApi, type HDADetailed } from "@/api";
import { fetchDatasetDetails } from "@/api/datasets";
import { type JobDetails, type JobInputSummary } from "@/api/jobs";
+import { useConfig } from "@/composables/config";
import { useMarkdown } from "@/composables/markdown";
import { useUserStore } from "@/stores/userStore";
import localize from "@/utils/localization";
@@ -30,6 +31,7 @@ const userStore = useUserStore();
const { currentUser } = storeToRefs(userStore);
const { renderMarkdown } = useMarkdown({ openLinksInNewPage: true });
+const { config, isConfigLoaded } = useConfig();
const message = ref("");
const jobLoading = ref(true);
@@ -47,6 +49,8 @@ const showForm = computed(() => {
return noResult || hasError;
});
+const showWizard = computed(() => isConfigLoaded && config.value?.llm_api_configured);
+
async function getDatasetDetails() {
datasetLoading.value = true;
try {
@@ -154,21 +158,22 @@ onMounted(async () => {
{{ jobDetails.tool_id }}.
-
- Possible Causes
-
-
- We can use AI to analyze the issue and suggest possible fixes. Please note that the diagnosis may
- not always be accurate.
-
-
-
-
-
+
+ Possible Causes
+
+
+ We can use AI to analyze the issue and suggest possible fixes. Please note that the diagnosis
+ may not always be accurate.
+
+
+
+
+
+