From fa6716345d56464bcc809136e57785dd1082ee18 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Fri, 30 Jun 2023 20:17:46 +0200 Subject: [PATCH] hide embeddings UI if not test_diffusers --- ui/index.html | 2 +- ui/media/js/main.js | 4 ++++ ui/media/js/parameters.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/index.html b/ui/index.html index 5b6c5300..3ae54e0e 100644 --- a/ui/index.html +++ b/ui/index.html @@ -244,7 +244,7 @@
- + diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 48080281..c5f5bc52 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -2200,6 +2200,10 @@ embeddingsSearchBox.addEventListener("input", (e) => { updateEmbeddingsList(embeddingsSearchBox.value) }) +if (testDiffusers.checked) { + document.getElementById("embeddings-container").classList.remove("displayNone") +} + /* Pause function */ document.querySelectorAll(".tab").forEach(linkTabContents) diff --git a/ui/media/js/parameters.js b/ui/media/js/parameters.js index cd86be63..cfe4f3a8 100644 --- a/ui/media/js/parameters.js +++ b/ui/media/js/parameters.js @@ -441,6 +441,7 @@ async function getAppConfig() { option.disabled = true }) document.querySelector("#clip_skip_config").classList.remove("displayNone") + document.querySelector("#embeddings-container").classList.remove("displayNone") } console.log("get config status response", config)