Skip to content

Commit

Permalink
fix: don't show contact if it is empty object
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Apr 19, 2017
1 parent 00b304a commit 6077cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/ApiInfo/api-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1>{{info.title}} <span class="api-info-version">({{info.version}})</span></h1>
</p>
<p>
<!-- TODO: create separate components for contact and license ? -->
<span *ngIf="info?.contact"> Contact:
<span *ngIf="info?.contact?.url || info?.contact?.email"> Contact:
<a *ngIf="info.contact.url" href="{{info.contact.url}}">
{{info.contact.name || info.contact.url}}</a>
<a *ngIf="info.contact.email" href="mailto:{{info.contact.email}}">
Expand Down

0 comments on commit 6077cc6

Please sign in to comment.