Re-show site selection box if no machines in use at selected site

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2023-03-05 01:32:53 +00:00
parent 5c73978163
commit eea634c193
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -52,7 +52,8 @@ const siteIDInput = document.getElementById("select_site__site_id_input")
setSiteName(responseBody.name)
if (numberInUse === 0) {
showError(`No machines in use at ${responseBody.name}. To select a different site, refresh the page.`)
showError(`No machines in use at ${responseBody.name}.`)
show(selectSiteBlock)
return
}