Skip to content

Commit

Permalink
BC-2936 update after review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Oct 29, 2024
1 parent 7986a8c commit 3d498ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions views/lib/components/files-storage/files-card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
tabindex="0"
aria-label="{{$t "files.label.clickToOpenFile" (dict "name" this.name)}}"
role="button">
<div class="card-title" data-testid="file-title-card-{{@index}}">
<div class="card-title" data-testid="file-title-card-{{fileIndex}}">
<div class="file-preview-wrapper col-sm-1 no-padding hidden-xs-down">
<div class="file-preview" style="background-image: url({{getThumbnailIcon this.name}}); -webkit-background-size: 25px ;background-size: 25px;"></div>
</div>
Expand All @@ -37,7 +37,7 @@
data-file-name="{{../this.name}}"
class="file-btn"
data-method="download"
data-testid="file-download-btn-{{@index}}"
data-testid="file-download-btn-{{../fileIndex}}"
title="{{$t "files.label.downloadFile"}}">
<i aria-hidden="true" class="fa fa-cloud-download"></i>
</button>
Expand All @@ -49,14 +49,14 @@
data-file-name="{{../this.name}}"
title="{{$t "files.label.renameFile"}}"
class="file-btn fa fa-edit file-name-edit"
data-testid="file-rename-btn-{{@index}}">
data-testid="file-rename-btn-{{../fileIndex}}">
</button>
{{/userHasPermission}}
{{#userHasPermission "FILESTORAGE_REMOVE"}}
<button
class="file-btn"
data-method="delete"
data-testid="file-delete-btn-{{@index}}"
data-testid="file-delete-btn-{{../fileIndex}}"
title="{{$t "files.label.deleteFile"}}"
data-file-id="{{../this.id}}"
data-file-name="{{../this.name}}">
Expand Down
2 changes: 1 addition & 1 deletion views/lib/components/files-storage/files-grid.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="row">
{{#each files}}
<div class="col-sm-12">
{{> "lib/components/files-storage/files-card" readonly=../readonly index=@index}}
{{> "lib/components/files-storage/files-card" readonly=../readonly fileIndex=@index}}
</div>
{{/each}}
</div>
Expand Down

0 comments on commit 3d498ea

Please sign in to comment.