mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 21:00:39 +08:00
Add class with image name in image component
This commit is contained in:
parent
567d034c24
commit
8a7dfaddf8
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@
|
|||
-->
|
||||
<ng-container *ngIf="imageSig() as img">
|
||||
|
||||
<svg-icon *ngIf="img.type === 'svg'" [svgClass]="klass || ''" [title]="title || ''" class="{{wrapperClass}}"
|
||||
<svg-icon *ngIf="img.type === 'svg'" [svgClass]="klass || ''" [title]="title || ''" class="{{wrapperClass}} image-{{img.name}}"
|
||||
name="{{img.name}}"></svg-icon>
|
||||
|
||||
<img *ngIf="img.type !=='svg'" alt="" src="{{img.path}}" class="{{klass}}" [title]="title || ''">
|
||||
<img *ngIf="img.type !=='svg'" alt="" src="{{img.path}}" class="{{klass}} image-{{img.name}}" [title]="title || ''">
|
||||
|
||||
</ng-container>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue