Skip to content

Commit

Permalink
Add example to beacon page
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Apr 30, 2019
1 parent de997c5 commit 7a2d9d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/js/controller.datasetBeaconController.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
var localThis = this;
localThis.queryResponses = [];
localThis.search = search;
localThis.fillExample = fillExample;

activate();

Expand Down Expand Up @@ -80,5 +81,11 @@
}
);
}
function fillExample() {
localThis.chromosome = "22";
localThis.position = 46615880;
localThis.referenceAllele = "T";
localThis.allele = "C";
}
}]);
})();
2 changes: 2 additions & 0 deletions frontend/templates/ng-templates/dataset-beacon.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ <h3>Beacon error</h3>
Help
</a>
</div>
<div class="col-sm-2">
<a style='cursor: pointer' ng-click="ctrl.fillExample()" class="pull-right">Show example</a>
</div>
</form>
<div class="row" ng-show="showDetails">
Expand Down

0 comments on commit 7a2d9d1

Please sign in to comment.