File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
- < img *ngIf ="logo.imgUrl " [attr.src] ="logo.imgUrl " [ngStyle] ="{'background-color': logo.bgColor} ">
1
+ < a *ngIf ="logo.url " href ="{{logo.url}} ">
2
+ < img *ngIf ="logo.imgUrl " [attr.src] ="logo.imgUrl " [ngStyle] ="{'background-color': logo.bgColor} ">
3
+ </ a >
4
+ < img *ngIf ="logo.imgUrl && !logo.url " [attr.src] ="logo.imgUrl " [ngStyle] ="{'background-color': logo.bgColor} ">
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ export class ApiLogo extends BaseComponent implements OnInit {
17
17
18
18
init ( ) {
19
19
let logoInfo = this . componentSchema . info [ 'x-logo' ] ;
20
+ if ( 'url' in this . componentSchema . info [ 'contact' ] ) {
21
+ this . logo . url = this . componentSchema . info [ 'contact' ] [ 'url' ] ;
22
+ }
20
23
if ( ! logoInfo ) return ;
21
24
this . logo . imgUrl = logoInfo . url ;
22
25
this . logo . bgColor = logoInfo . backgroundColor || 'transparent' ;
You can’t perform that action at this time.
0 commit comments