Skip to content

Commit

Permalink
Hide loading coverage when there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
viklund committed Jun 21, 2018
1 parent f2d0959 commit 93f8a00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions frontend/src/js/controller.browserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
});
Browser.getCoverage($routeParams.dataset, localThis.itemType, localThis.item).then(function(data) {
localThis.coverage.data = data.coverage;
localThis.coverage.loaded = true;
}, function() {
localThis.coverage.loaded = true;
});
}
if ($routeParams.variant) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/templates/ng-templates/browser-gene.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h1>Gene: {{ ctrl.gene.geneName }}</h1>
</div>

<!-- Loading message -->
<div ng-if="!ctrl.coverage.data.length" class="alert alert-info col-md-4 col-md-offset-4 text-center" >
<div ng-if="!ctrl.coverage.loaded" class="alert alert-info col-md-4 col-md-offset-4 text-center" >
<strong>Loading Coverage</strong>
</div>

Expand Down
2 changes: 1 addition & 1 deletion frontend/templates/ng-templates/browser-region.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h3>Invalid region!</h3>
</div>

<!-- Loading message -->
<div ng-if="!ctrl.coverage.data.length" class="alert alert-info col-md-4 col-md-offset-4 text-center" >
<div ng-if="!ctrl.coverage.loaded" class="alert alert-info col-md-4 col-md-offset-4 text-center" >
<strong>Loading Coverage</strong>
</div>

Expand Down
2 changes: 1 addition & 1 deletion frontend/templates/ng-templates/browser-transcript.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3>Transcript: {{ ctrl.transcript.id }} ({{ ctrl.transcript.numberOfCDS }} codi
</div>

<!-- Loading message -->
<div ng-if="!ctrl.coverage.data.length" class="alert alert-info col-md-4 col-md-offset-4 text-center" >
<div ng-if="!ctrl.coverage.loaded" class="alert alert-info col-md-4 col-md-offset-4 text-center" >
<strong>Loading Coverage</strong>
</div>

Expand Down

0 comments on commit 93f8a00

Please sign in to comment.