Skip to content

Commit

Permalink
Use spinner for loadGenome
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Feb 7, 2024
1 parent e183bfe commit d21c50f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/genomeWidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ async function loadGenome(genomeConfiguration, custom = false) {

let g = undefined
try {
Globals.browser.startSpinner()
g = await Globals.browser.loadGenome(genomeConfiguration)
if (g.id) {
try {
Expand Down Expand Up @@ -211,6 +212,8 @@ async function loadGenome(genomeConfiguration, custom = false) {
} catch (e) {
console.error(e)
AlertSingleton.present(e)
} finally {
Globals.browser.stopSpinner()
}

// if (g) {
Expand Down

0 comments on commit d21c50f

Please sign in to comment.