mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
handle style of button while domains are loading
This commit is contained in:
parent
5b03a445a8
commit
541c3c6da8
2 changed files with 7 additions and 1 deletions
|
@ -73,4 +73,4 @@ span.port {
|
|||
#small-save-button {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,6 +236,8 @@ function chooseFromHighFidelityDomains(clickedButton) {
|
|||
if (Settings.initialValues.metaverse.access_token) {
|
||||
|
||||
// add a spinner to the choose button
|
||||
clickedButton.html("Loading domains...")
|
||||
clickedButton.attr('disabled', 'disabled')
|
||||
|
||||
// get a list of user domains from data-web
|
||||
data_web_domains_url = "https://data.highfidelity.io/api/v1/domains?access_token="
|
||||
|
@ -281,6 +283,10 @@ function chooseFromHighFidelityDomains(clickedButton) {
|
|||
message: modal_body,
|
||||
buttons: modal_buttons
|
||||
})
|
||||
|
||||
// remove the spinner from the choose button
|
||||
clickedButton.html("Choose from my domains")
|
||||
clickedButton.removeAttr('disabled')
|
||||
})
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue