make sure we use the brandlogo if present (which may be a .jpg or svg file) rather than the png default.
This commit is contained in:
parent
b97a242e72
commit
807884a758
|
@ -1,5 +1,6 @@
|
|||
export class MetadataSource {
|
||||
platform_type: string
|
||||
brand_logo?: string
|
||||
source_type: string
|
||||
display: string
|
||||
category: string[]
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<div (click)="openModal(contentModalRef, sourceInfo)" class="card-body">
|
||||
|
||||
<div class="h-100 d-flex align-items-center">
|
||||
<img [src]="'assets/sources/'+sourceInfo?.metadata['source_type']+'.png'" [alt]="sourceInfo?.metadata.display" class="img-fluid">
|
||||
<img [src]="'assets/sources/'+(sourceInfo.metadata.brand_logo ? sourceInfo.metadata.brand_logo : sourceInfo.metadata.source_type+'.png')" [alt]="sourceInfo?.metadata.display" class="img-fluid">
|
||||
</div>
|
||||
<div *ngIf="status[sourceInfo.metadata?.source_type]" class="progress">
|
||||
<div [style.width]="status[sourceInfo?.metadata?.source_type] == 'authorize' ? '33%' : '66%'" class="bg-indigo progress-bar progress-bar-striped progress-bar-animated" role="progressbar"></div>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<div *ngFor="let sourceData of availableSourceList" (click)="connectHandler($event, sourceData.metadata.source_type)" class="col-sm-3 mg-b-20 px-3">
|
||||
<div class="card h-100 d-flex align-items-center justify-content-center mt-3 mt-3 rounded-0 cursor-pointer" [ngClass]="{'card-disable': sourceData.metadata.hidden}">
|
||||
<div class="card-body d-flex align-items-center">
|
||||
<img style="max-height: 130px;" [src]="'assets/sources/'+sourceData.metadata.source_type+'.png'" [alt]="sourceData.metadata.display" class="img-fluid">
|
||||
<img style="max-height: 130px;" [src]="'assets/sources/'+(sourceData.metadata.brand_logo ? sourceData.metadata.brand_logo : sourceData.metadata.source_type+'.png')" [alt]="sourceData.metadata.display" class="img-fluid">
|
||||
<div *ngIf="status[sourceData.metadata.source_type]" class="progress">
|
||||
<div [style.width]="status[sourceData.metadata.source_type] == 'authorize' ? '33%' : '66%'" class="bg-indigo progress-bar progress-bar-striped progress-bar-animated" role="progressbar"></div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue