From ccb67ab5a207fe418a0cf2b46ecd5b21f4512079 Mon Sep 17 00:00:00 2001 From: Uzaeir Khan Date: Mon, 28 Oct 2024 13:41:16 +0100 Subject: [PATCH 1/4] BC-2936 initial commit --- .../components/files-storage/files-card.hbs | 4 +++- .../files-storage/forms/form-name-edit.hbs | 19 ++++++++++--------- views/teams/team.hbs | 4 ++-- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/views/lib/components/files-storage/files-card.hbs b/views/lib/components/files-storage/files-card.hbs index e5796aa400..2171fe08ce 100644 --- a/views/lib/components/files-storage/files-card.hbs +++ b/views/lib/components/files-storage/files-card.hbs @@ -48,13 +48,15 @@ data-file-id="{{../this.id}}" data-file-name="{{../this.name}}" title="{{$t "files.label.renameFile"}}" - class="file-btn fa fa-edit file-name-edit"> + class="file-btn fa fa-edit file-name-edit" + data-testid="file-rename-btn"> {{/userHasPermission}} {{#userHasPermission "FILESTORAGE_REMOVE"}} @@ -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"> + data-testid="file-rename-btn-{{@index}}"> {{/userHasPermission}} {{#userHasPermission "FILESTORAGE_REMOVE"}} @@ -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}}"> {{/userHasPermission}} {{#userHasPermission "FILESTORAGE_REMOVE"}}