fix: don't show contact if it is empty object

This commit is contained in:
Roman Hotsiy 2017-04-18 16:40:31 +03:00
parent 00b304a4be
commit 6077cc6afd
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -6,7 +6,7 @@
</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}}">