From d21c50f2fd048dd26650bb590d11e26f292d804f Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Tue, 6 Feb 2024 22:29:01 -0800 Subject: [PATCH] Use spinner for loadGenome --- js/genomeWidgets.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/genomeWidgets.js b/js/genomeWidgets.js index 38d2338..8c11d65 100644 --- a/js/genomeWidgets.js +++ b/js/genomeWidgets.js @@ -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 { @@ -211,6 +212,8 @@ async function loadGenome(genomeConfiguration, custom = false) { } catch (e) { console.error(e) AlertSingleton.present(e) + } finally { + Globals.browser.stopSpinner() } // if (g) {