This change is necessary because some icons weren't updated properly inside of components using OnPush (e.g. course-storage page).
7 lines
433 B
HTML
7 lines
433 B
HTML
<ng-container *ngIf="loaded() && !svgIcon()">
|
|
<img *ngIf="!isLocalUrl()" [url]="iconUrl()" core-external-content alt="" [component]="linkIconWithComponent() ? modname : null"
|
|
[componentId]="linkIconWithComponent() ? componentId : null" (error)="loadFallbackIcon()">
|
|
<img *ngIf="isLocalUrl()" [src]="iconUrl()" (error)="loadFallbackIcon()" alt="">
|
|
</ng-container>
|
|
<div *ngIf="svgIcon()" [innerHTML]="svgIcon()"></div>
|