Don't show or allow test_diffusers if not using the beta branch. This allows allow features to release to the main branch, while restricting diffusers to the beta branch

This commit is contained in:
cmdr2
2023-04-01 16:42:06 +05:30
parent 061e012cff
commit fad36d9c08
2 changed files with 6 additions and 2 deletions

View File

@ -309,6 +309,8 @@ async function getAppConfig() {
if (config.update_branch === 'beta') {
useBetaChannelField.checked = true
document.querySelector("#updateBranchLabel").innerText = "(beta)"
} else {
getParameterSettingsEntry("test_diffusers").style.display = "none"
}
if (config.ui && config.ui.open_browser_on_start === false) {
uiOpenBrowserOnStartField.checked = false
@ -320,7 +322,7 @@ async function getAppConfig() {
listenPortField.value = config.net.listen_port
}
if (config.test_diffusers !== undefined) {
testDiffusers.checked = config.test_diffusers
testDiffusers.checked = config.test_diffusers && config.update_branch === 'beta'
document.querySelector("#lora_model_container").style.display = (testDiffusers.checked ? '' : 'none')
}