Skip to content

Commit

Permalink
Merge pull request #8 from iobio/yang_bam2_fix_loading_indicator
Browse files Browse the repository at this point in the history
Fixed the loading indicator logic
  • Loading branch information
anderspitman authored Oct 3, 2024
2 parents 7fa6c3a + 2f99760 commit 58bae16
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions home_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ class HomePage extends HTMLElement {
this.attachShadow({ mode: 'open' });
this.shadowRoot.appendChild(homePageTemplate.content.cloneNode(true));
this.initDOMElements();

this.currentAlignmentUrl = null;
}

initDOMElements() {
Expand Down Expand Up @@ -233,8 +231,7 @@ class HomePage extends HTMLElement {

// Navigate to the main content page with the URLs
navigateToMainContent(url1, url2) {
if (url1 !== this.currentAlignmentUrl) {
this.currentAlignmentUrl = url1;
if (url1 !== this.broker.alignmentUrl) {
// reset the state
this.broker.reset();
}
Expand Down

0 comments on commit 58bae16

Please sign in to comment.