From d35a89bb010dbd57c76dba43522adfae35169c49 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 3 Aug 2023 17:08:21 +0530 Subject: [PATCH] Show the controlnet buttons only for diffusers --- ui/index.html | 111 +++++++++++++++++++------------------- ui/media/js/parameters.js | 2 + 2 files changed, 59 insertions(+), 54 deletions(-) diff --git a/ui/index.html b/ui/index.html index 8bc2a0ba..7cedc0e5 100644 --- a/ui/index.html +++ b/ui/index.html @@ -161,60 +161,63 @@ Click to learn more about Clip Skip - -
- - - -
- - Click to learn more about ControlNets -
- - -
- -
- -
- + + + +
+ + + +
+ + Click to learn more about ControlNets +
+ + +
+ +
+ +
+ + Click to learn more about VAEs diff --git a/ui/media/js/parameters.js b/ui/media/js/parameters.js index b97356ec..8ff902a9 100644 --- a/ui/media/js/parameters.js +++ b/ui/media/js/parameters.js @@ -461,6 +461,7 @@ async function getAppConfig() { if (!testDiffusersEnabled) { document.querySelector("#lora_model_container").style.display = "none" document.querySelector("#tiling_container").style.display = "none" + document.querySelector("#controlnet_model_container").style.display = "none" document.querySelectorAll("#sampler_name option.diffusers-only").forEach((option) => { option.style.display = "none" @@ -470,6 +471,7 @@ async function getAppConfig() { } else { document.querySelector("#lora_model_container").style.display = "" document.querySelector("#tiling_container").style.display = "" + document.querySelector("#controlnet_model_container").style.display = "" document.querySelectorAll("#sampler_name option.k_diffusion-only").forEach((option) => { option.style.display = "none"