Fixed SonarCloud complaints

This commit is contained in:
Vito Albano
2024-04-25 13:47:51 +01:00
committed by VitoAlbano
parent 90c8746b50
commit 70174fc8c2
4 changed files with 14 additions and 15 deletions

View File

@@ -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>