Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(participant): Hide buttons when no file.
Browse files Browse the repository at this point in the history
Closes #614
  • Loading branch information
Matthew Schranz committed Mar 16, 2015
1 parent 94fae86 commit 3795613
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<div class="panel panel-default">
<div class="panel-heading clearfix">
<h3 class="panel-title pull-left" data-translate>Biospecimen</h3>
<a class="btn btn-default pull-right" data-ng-href="{{ [bc.bioSpecimenFileId] | makeDownloadLink }}"
<a class="btn btn-default pull-right"
data-ng-if="bc.bioSpecimenFileId"
data-ng-href="{{ [bc.bioSpecimenFileId] | makeDownloadLink }}"
data-translate>Download Biospecimen XML</a>

</div>
Expand Down
4 changes: 3 additions & 1 deletion app/scripts/participant/templates/participant.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ <h3 class="panel-title" data-translate>Available Data
<h3 class="panel-title pull-left" data-translate>
Clinical
</h3>
<a class="btn btn-default pull-right" data-ng-href="{{ [pc.clinicalFileId] | makeDownloadLink }}"
<a class="btn btn-default pull-right"
data-ng-if="pc.clinicalFileId"
data-ng-href="{{ [pc.clinicalFileId] | makeDownloadLink }}"
data-translate>Download Clinical XML</a>
</div>

Expand Down

0 comments on commit 3795613

Please sign in to comment.