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:
parent
5c73978163
commit
eea634c193
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue