Skip to content

Commit

Permalink
fix: small bug in contact information display
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Aug 24, 2022
1 parent bea91cb commit a67f9d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/OpenApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
<md-card v-if="api.info">
<md-list class="md-dense">
<md-list-item v-if="api.info.contact && api.info.contact.url">
<md-icon>home</md-icon> <span><a :href="api.info.contact.url">{{api.info.contact.name || api.info.contact.url}}</a></span>
<md-icon>home</md-icon> <span><a :href="api.info.contact.url" target="_top">{{api.info.contact.name || api.info.contact.url}}</a></span>
</md-list-item>
<md-list-item v-if="api.info.contact && !api.info.contact.url && api.info.contact.name">
<md-icon>home</md-icon> <span>{{api.info.contact.name}}</span>
</md-list-item>
<md-list-item v-if="api.info.contact && api.info.contact.email">
<md-icon>email</md-icon> <span><a :href="'mailto:'+api.info.contact.email">{{api.info.contact.email}}</a></span>
Expand Down

0 comments on commit a67f9d4

Please sign in to comment.