mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-28 18:08:54 +01:00
hide embeddings UI if not test_diffusers
This commit is contained in:
parent
f09c50ec90
commit
fa6716345d
@ -244,7 +244,7 @@
|
|||||||
<td><label for="hypernetwork_strength_slider">Hypernetwork Strength:</label></td>
|
<td><label for="hypernetwork_strength_slider">Hypernetwork Strength:</label></td>
|
||||||
<td> <input id="hypernetwork_strength_slider" name="hypernetwork_strength_slider" class="editor-slider" value="100" type="range" min="0" max="100"> <input id="hypernetwork_strength" name="hypernetwork_strength" size="4" pattern="^[0-9\.]+$" onkeypress="preventNonNumericalInput(event)"><br/></td>
|
<td> <input id="hypernetwork_strength_slider" name="hypernetwork_strength_slider" class="editor-slider" value="100" type="range" min="0" max="100"> <input id="hypernetwork_strength" name="hypernetwork_strength" size="4" pattern="^[0-9\.]+$" onkeypress="preventNonNumericalInput(event)"><br/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="pl-5"><td><label for="embeddings-button">Embedding:</label></td><td>
|
<tr id="embeddings-container" class="pl-5 displayNone"><td><label for="embeddings-button">Embedding:</label></td><td>
|
||||||
<button id="embeddings-button" class="tertiaryButton">Add embedding to prompt</button>
|
<button id="embeddings-button" class="tertiaryButton">Add embedding to prompt</button>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr id="tiling_container" class="pl-5"><td><label for="tiling">Seamless Tiling:</label></td><td>
|
<tr id="tiling_container" class="pl-5"><td><label for="tiling">Seamless Tiling:</label></td><td>
|
||||||
|
@ -2200,6 +2200,10 @@ embeddingsSearchBox.addEventListener("input", (e) => {
|
|||||||
updateEmbeddingsList(embeddingsSearchBox.value)
|
updateEmbeddingsList(embeddingsSearchBox.value)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (testDiffusers.checked) {
|
||||||
|
document.getElementById("embeddings-container").classList.remove("displayNone")
|
||||||
|
}
|
||||||
|
|
||||||
/* Pause function */
|
/* Pause function */
|
||||||
document.querySelectorAll(".tab").forEach(linkTabContents)
|
document.querySelectorAll(".tab").forEach(linkTabContents)
|
||||||
|
|
||||||
|
@ -441,6 +441,7 @@ async function getAppConfig() {
|
|||||||
option.disabled = true
|
option.disabled = true
|
||||||
})
|
})
|
||||||
document.querySelector("#clip_skip_config").classList.remove("displayNone")
|
document.querySelector("#clip_skip_config").classList.remove("displayNone")
|
||||||
|
document.querySelector("#embeddings-container").classList.remove("displayNone")
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("get config status response", config)
|
console.log("get config status response", config)
|
||||||
|
Loading…
Reference in New Issue
Block a user