Skip to content

Commit

Permalink
make sure we use the brandlogo if present (which may be a .jpg or svg…
Browse files Browse the repository at this point in the history
… file) rather than the png default.
  • Loading branch information
AnalogJ committed Mar 11, 2023
1 parent b97a242 commit 807884a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/app/models/fasten/metadata-source.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export class MetadataSource {
platform_type: string
brand_logo?: string
source_type: string
display: string
category: string[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2 class="az-content-title">Connected Sources</h2>
<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>
Expand Down Expand Up @@ -95,7 +95,7 @@ <h2 class="az-content-title mg-t-40">Medical Record Sources</h2>
<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>
Expand Down

0 comments on commit 807884a

Please sign in to comment.