mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-26 12:28:21 +02:00
Don't allow setting the channel while the server is still starting up
This commit is contained in:
parent
98b1e50c86
commit
75ac3450e6
@ -911,6 +911,13 @@ promptStrengthField.addEventListener('input', updatePromptStrength)
|
|||||||
updatePromptStrength()
|
updatePromptStrength()
|
||||||
|
|
||||||
useBetaChannelField.addEventListener('click', async function(e) {
|
useBetaChannelField.addEventListener('click', async function(e) {
|
||||||
|
if (serverStatus !== 'online') {
|
||||||
|
logError('The server is still starting up..')
|
||||||
|
alert('The server is still starting up..')
|
||||||
|
e.preventDefault()
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
let updateBranch = (this.checked ? 'beta' : 'main')
|
let updateBranch = (this.checked ? 'beta' : 'main')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user