diff --git a/WebUI/src/components/InstallationManagement.vue b/WebUI/src/components/InstallationManagement.vue index 65ee98c5..139e29bb 100644 --- a/WebUI/src/components/InstallationManagement.vue +++ b/WebUI/src/components/InstallationManagement.vue @@ -3,7 +3,6 @@

{{ languages.BACKEND_MANAGE }}

-

{{ languages.BACKEND_REQUIRED_COMPONENTS_MESSAGE }}

{{ languages.BACKEND_OPTIONAL_COMPONENTS_MESSAGE }}

@@ -24,10 +23,10 @@ {{ component.isRequired ? "Required" : "Optional" }} - -

-

+

-

-

@@ -124,10 +123,11 @@ const loadingComponents = ref(new Set()); const somethingChanged = ref(false) -const enabledComponents = ref(new Set(backendServices.info.filter((item) => item.isSetUp || item.isRequired).map((item) => item.serviceName))) +const alreadyInstalledOrRequiredComponents = computed(() => new Set(backendServices.info.filter((item) => item.isSetUp || item.isRequired).map((item) => item.serviceName))) +const toBeInstalledComponents = ref(new Set()) const components = computed(() => {return backendServices.info.map((item) => ({ - enabled: enabledComponents.value.has(item.serviceName), + enabled: alreadyInstalledOrRequiredComponents.value.has(item.serviceName) || toBeInstalledComponents.value.has(item.serviceName), isLoading: loadingComponents.value.has(item.serviceName), ...item }))}) @@ -203,7 +203,7 @@ function getInfoURL(serviceName: string) { case "llamacpp-backend": return "https://github.com/abetlen/llama-cpp-python" default: - return "" + return undefined } }