From fc30a47f71cf94c0be6753ce872b933854467537 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Thu, 17 Oct 2024 14:04:40 +1100 Subject: [PATCH] Display connection error when failed to fetch models. --- AiServer/wwwroot/mjs/components/MediaProviders.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AiServer/wwwroot/mjs/components/MediaProviders.mjs b/AiServer/wwwroot/mjs/components/MediaProviders.mjs index 149f0b3..29d04c0 100644 --- a/AiServer/wwwroot/mjs/components/MediaProviders.mjs +++ b/AiServer/wwwroot/mjs/components/MediaProviders.mjs @@ -113,6 +113,10 @@ const SelectModels = { if (apiComfy.succeeded) { comfyModelsUrl.value = props.apiBaseUrl comfyModels.value = apiComfy.response.results + connectionStatus.value = null + } + else { + connectionStatus.value = 'failure' } const apiModelMaps = await client.api(new GetComfyModelMappings()); // console.log("apiModelMaps", apiModelMaps)