Don't allow setting the channel while the server is still starting up

This commit is contained in:
cmdr2 2022-09-09 21:31:34 +05:30
parent 98b1e50c86
commit 75ac3450e6

View File

@ -911,6 +911,13 @@ promptStrengthField.addEventListener('input', updatePromptStrength)
updatePromptStrength()
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')
try {