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 ae90408c4..d657d0e62 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
@@ -7,20 +7,20 @@
@@ -31,10 +31,10 @@
(action)="resize()"
*ngIf="canResize"
[attr.help-mode-key]="helpModeKey('resize')"
+ [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-resize' : 'annotations-resize'"
[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,10 +42,10 @@
(action)="annotationActionsService.editRedaction(annotations)"
*ngIf="canEdit"
[attr.help-mode-key]="helpModeKey('edit')"
+ [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-edit' : 'annotations-edit'"
[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"
>
@@ -53,14 +53,14 @@
(action)="acceptRecommendation()"
*ngIf="canAcceptRecommendation"
[attr.help-mode-key]="helpModeKey('accept')"
- [tooltipPosition]="tooltipPosition"
- [tooltip]="'annotation-actions.accept-recommendation.label' | translate"
- [type]="buttonType"
[buttonId]="
annotations.length === 1
? 'annotation-' + annotations[0].id + '-accept_recommendation'
: 'annotations-accept_recommendation'
"
+ [tooltipPosition]="tooltipPosition"
+ [tooltip]="'annotation-actions.accept-recommendation.label' | translate"
+ [type]="buttonType"
icon="iqser:check"
>
@@ -104,21 +104,21 @@
(action)="annotationActionsService.forceAnnotation(annotations)"
*ngIf="canForceRedaction"
[attr.help-mode-key]="helpModeKey('force')"
+ [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-force_redaction' : 'annotations-force_redaction'"
+ [icon]="isImageHint ? 'red:pdftron-action-add-redaction' : 'iqser:thumb-up'"
[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]="isImageHint ? 'red:pdftron-action-add-redaction' : 'iqser:thumb-up'"
>
@@ -126,31 +126,31 @@
(action)="hideAnnotation()"
*ngIf="isImage && isVisible() && !hideSkipped"
[attr.help-mode-key]="helpModeKey('hide')"
+ [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-hide' : 'annotations-hide'"
[tooltipPosition]="tooltipPosition"
[tooltip]="'annotation-actions.hide' | translate"
[type]="buttonType"
- [buttonId]="annotations.length === 1 ? 'annotation-' + annotations[0].id + '-hide' : 'annotations-hide'"
- icon="red:visibility-off"
+ icon="iqser:visibility-off"
>
diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html
index 2054494ac..2e1fabc17 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html
+++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html
@@ -68,8 +68,8 @@
@@ -223,7 +223,7 @@
();
readonly redactTextRequested$ = new Subject();
@@ -71,6 +62,15 @@ export class PdfProxyService {
const isAllowed = this._permissionsService.canPerformAnnotationActions(this._state.file(), this._state.dossier());
return isAllowed && isStandard;
});
+ readonly #convertPath = inject(UI_ROOT_PATH_FN);
+ readonly #visibilityOffIcon = this.#convertPath('/assets/icons/visibility-off.svg');
+ readonly #visibilityIcon = this.#convertPath('/assets/icons/visibility.svg');
+ readonly #falsePositiveIcon = this.#convertPath('/assets/icons/general/pdftron-action-false-positive.svg');
+ readonly #addRedactionIcon = this._iqserPermissionsService.has(Roles.getRss)
+ ? this.#convertPath('/assets/icons/general/pdftron-action-add-annotation.svg')
+ : this.#convertPath('/assets/icons/general/pdftron-action-add-redaction.svg');
+ readonly #isDocumine = getConfig().IS_DOCUMINE;
+ readonly #addHintIcon = this.#convertPath('/assets/icons/general/pdftron-action-add-hint.svg');
constructor(
private readonly _translateService: TranslateService,
diff --git a/apps/red-ui/src/app/modules/icons/icons.module.ts b/apps/red-ui/src/app/modules/icons/icons.module.ts
index dab2ac28d..ebd3203ad 100644
--- a/apps/red-ui/src/app/modules/icons/icons.module.ts
+++ b/apps/red-ui/src/app/modules/icons/icons.module.ts
@@ -83,8 +83,6 @@ export class IconsModule {
'under-construction',
'undo',
'user',
- 'visibility',
- 'visibility-off',
'warning',
'pdftron-action-add-redaction',
];
diff --git a/apps/red-ui/src/assets/icons/general/visibility-off.svg b/apps/red-ui/src/assets/icons/general/visibility-off.svg
deleted file mode 100644
index 8b0454954..000000000
--- a/apps/red-ui/src/assets/icons/general/visibility-off.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/apps/red-ui/src/assets/icons/general/visibility.svg b/apps/red-ui/src/assets/icons/general/visibility.svg
deleted file mode 100644
index b0b727e28..000000000
--- a/apps/red-ui/src/assets/icons/general/visibility.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/libs/common-ui b/libs/common-ui
index 5eef6d403..04eaca160 160000
--- a/libs/common-ui
+++ b/libs/common-ui
@@ -1 +1 @@
-Subproject commit 5eef6d403a57c224eec836d9d98787c6a128c50a
+Subproject commit 04eaca1600149e3f4e803fd2334c25465197dbf6