diff --git a/lib/components/ApiLogo/api-logo.html b/lib/components/ApiLogo/api-logo.html index 897e3583..e152677b 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 e253d852..ff75ae12 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';