mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixed SonarCloud complaints
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
|
||||
<div data-automation-id="adf-attach-widget-readonly-list">
|
||||
<mat-list *ngIf="hasFile">
|
||||
<mat-list-item class="adf-attach-files-row" *ngFor="let file of field.value">
|
||||
<mat-list-item class="adf-attach-files-row" *ngFor="let file of field.value; index as i">
|
||||
<img matListItemLine class="adf-attach-widget__icon"
|
||||
[id]="'file-'+file.id+'-icon'"
|
||||
[src]="file.content ? getIcon(file.content.mimeType) : getIcon(file.mimeType)"
|
||||
@@ -64,9 +64,9 @@
|
||||
(keyup.enter)="onAttachFileClicked(file)"
|
||||
role="img"
|
||||
[attr.aria-label]="file.name"
|
||||
tabindex="0"/>
|
||||
[tabindex]="i"/>
|
||||
<span matLine id="{{'file-'+file.id}}" (click)="onAttachFileClicked(file)" [matTooltip]="file.name" (keyup.enter)="onAttachFileClicked(file)"
|
||||
tabindex="0" class="adf-file">{{file.name}}</span>
|
||||
[tabindex]="i" class="adf-file">{{file.name}}</span>
|
||||
<button id="{{'file-'+file.id+'-option-menu'}}" mat-icon-button [matMenuTriggerFor]="fileActionMenu"
|
||||
[attr.aria-label]="'ADF_PROCESS_LIST.DETAILS.BUTTON.FILE_OPTION_MENU' | translate">
|
||||
<mat-icon>more_vert</mat-icon>
|
||||
|
Reference in New Issue
Block a user