From cb3d318e4a28ef4daf737ebdf689b191de46e413 Mon Sep 17 00:00:00 2001 From: Bohdan Khorolets Date: Wed, 16 Aug 2017 19:42:25 +0300 Subject: [PATCH] Closes #322: Feature request: Clickable logo that points to specific url --- lib/components/ApiLogo/api-logo.html | 5 ++++- lib/components/ApiLogo/api-logo.ts | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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';