mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 02:05:09 +01:00
Display Test Diffusers checkbox when enabling beta (#1430)
* Display Test Diffusers checkbox when enabling beta * remove debug
This commit is contained in:
parent
b408fc7cd2
commit
7b5e2b4a12
@ -78,6 +78,7 @@
|
|||||||
border-bottom-right-radius: 12px;
|
border-bottom-right-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parameters-table .fa-fire {
|
.parameters-table .fa-fire,
|
||||||
|
.parameters-table .fa-bolt {
|
||||||
color: #F7630C;
|
color: #F7630C;
|
||||||
}
|
}
|
||||||
|
@ -409,7 +409,7 @@ async function getAppConfig() {
|
|||||||
useBetaChannelField.checked = true
|
useBetaChannelField.checked = true
|
||||||
document.querySelector("#updateBranchLabel").innerText = "(beta)"
|
document.querySelector("#updateBranchLabel").innerText = "(beta)"
|
||||||
} else {
|
} else {
|
||||||
getParameterSettingsEntry("test_diffusers").style.display = "none"
|
getParameterSettingsEntry("test_diffusers").classList.add("displayNone")
|
||||||
}
|
}
|
||||||
if (config.ui && config.ui.open_browser_on_start === false) {
|
if (config.ui && config.ui.open_browser_on_start === false) {
|
||||||
uiOpenBrowserOnStartField.checked = false
|
uiOpenBrowserOnStartField.checked = false
|
||||||
@ -743,3 +743,11 @@ navigator.permissions.query({ name: "clipboard-write" }).then(function(result) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener("system_info_update", (e) => setDeviceInfo(e.detail))
|
document.addEventListener("system_info_update", (e) => setDeviceInfo(e.detail))
|
||||||
|
|
||||||
|
useBetaChannelField.addEventListener('change', (e) => {
|
||||||
|
if (e.target.checked) {
|
||||||
|
getParameterSettingsEntry("test_diffusers").classList.remove('displayNone')
|
||||||
|
} else {
|
||||||
|
getParameterSettingsEntry("test_diffusers").classList.add('displayNone')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user