mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
fix: don't show contact if it is empty object
This commit is contained in:
parent
00b304a4be
commit
6077cc6afd
|
@ -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}}">
|
||||
|
|
Loading…
Reference in New Issue
Block a user