fix logos with fallback in background jobs and notification dropdown.

This commit is contained in:
Jason Kulatunga 2024-01-21 10:10:12 -08:00
parent ac5359c332
commit fe8c485fef
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
<p class="az-notification-text">Background Jobs & Updates</p>
<div class="az-notification-list">
<a *ngFor="let backgroundJob of backgroundJobs" class="media new" routerLink="/background-jobs">
<div><img style="max-width:50px;" src="assets/sources/{{backgroundJob.data?.source_type}}.png" alt=""></div>
<div><img imageFallback style="max-width:50px;" src="assets/sources/{{backgroundJob.data?.brand_id}}.png" alt=""></div>
<div class="media-body">
<p><strong>{{backgroundJob.data?.source_type}}</strong> added {{backgroundJob.data?.checkpoint_data?.summary?.UpdatedResources?.length}} new records</p>
<span>{{backgroundJob.done_time | amDateFormat:'MMM DD hh:mma'}}</span>

View File

@ -30,7 +30,7 @@
<tbody>
<tr *ngFor="let backgroundJob of backgroundJobs" [class.border-left-danger]="backgroundJob.job_status == 'STATUS_FAILED'">
<td>
<img style="max-height:30px" [src]="'assets/sources/'+(backgroundJob?.data?.brand_id + '.png')" [alt]="backgroundJob?.data?.brand_id" class="img-fluid">
<img imageFallback style="max-height:30px" [src]="'assets/sources/'+(backgroundJob?.data?.brand_id + '.png')" [alt]="backgroundJob?.data?.brand_id" class="img-fluid">
</td>
<td>{{backgroundJob.job_type}}</td>
<td container="body" [ngbTooltip]="backgroundJob.created_at | amDateFormat:'YYYY-MM-DD HH:mm'">{{backgroundJob.created_at | amDateFormat:'LL'}}</td>