diff --git a/lib/components/ApiLogo/api-logo.html b/lib/components/ApiLogo/api-logo.html index 897e358375..e152677bb9 100644 --- a/lib/components/ApiLogo/api-logo.html +++ b/lib/components/ApiLogo/api-logo.html @@ -1 +1,4 @@ - + + + + diff --git a/lib/components/ApiLogo/api-logo.ts b/lib/components/ApiLogo/api-logo.ts index e253d85283..ff75ae12f9 100644 --- a/lib/components/ApiLogo/api-logo.ts +++ b/lib/components/ApiLogo/api-logo.ts @@ -17,6 +17,9 @@ export class ApiLogo extends BaseComponent implements OnInit { init() { let logoInfo = this.componentSchema.info['x-logo']; + if ('url' in this.componentSchema.info['contact']) { + this.logo.url = this.componentSchema.info['contact']['url']; + } if (!logoInfo) return; this.logo.imgUrl = logoInfo.url; this.logo.bgColor = logoInfo.backgroundColor || 'transparent';