From b17ebee4fa94abeb90efd8faffa446ff3d879313 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Thu, 14 Mar 2024 15:55:02 +0200 Subject: [PATCH] RED-8679: added specific ids for annotation wrappers and actions. --- .../annotation-actions.component.html | 14 ++++++++++++++ .../annotations-list.component.html | 1 + 2 files changed, 15 insertions(+) diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html b/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html index 50240be49..f9944495c 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html @@ -11,6 +11,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="resized ? ('annotation-actions.resize-accept.label' | translate) : ''" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-accept_resize' : 'annotations-accept_resize'" icon="iqser:check" > @@ -19,6 +20,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.resize-cancel.label' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-cancel_resize' : 'annotations-cancel_resize'" icon="iqser:close" > @@ -32,6 +34,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.resize.label' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-resize' : 'annotations-resize'" icon="iqser:resize" > @@ -42,6 +45,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.edit-redaction.label' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-edit' : 'annotations-edit'" icon="iqser:edit" > @@ -52,6 +56,11 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.accept-recommendation.label' | translate" [type]="buttonType" + [buttonId]=" + annotations.length === 1 + ? 'annotation-' + annotations[0].id + '-accept_recommendation' + : 'annotations-accept_recommendation' + " icon="iqser:check" > @@ -98,6 +107,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.force-redaction.label' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-force_redaction' : 'annotations-force_redaction'" icon="iqser:thumb-up" > @@ -108,6 +118,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.force-hint.label' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-force_hint' : 'annotations-force_hint'" icon="iqser:thumb-up" > @@ -118,6 +129,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.hide' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-hide' : 'annotations-hide'" icon="red:visibility-off" > @@ -127,6 +139,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.show' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-show' : 'annotations-show'" icon="red:visibility" > @@ -137,6 +150,7 @@ [tooltipPosition]="tooltipPosition" [tooltip]="'annotation-actions.remove-annotation.remove-redaction' | translate" [type]="buttonType" + [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-remove' : 'annotations-remove'" icon="iqser:trash" > diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.html b/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.html index c853de2dc..797460c2c 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.html @@ -6,6 +6,7 @@