From ebc074c3088755da798888b4389e77b2a6bc4a03 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Thu, 25 Jul 2024 16:44:57 +0300 Subject: [PATCH] RED-9542: fixed resize dialog header. --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 4 ++++ .../resize-redaction-dialog.component.html | 5 +---- .../resize-redaction-dialog.component.ts | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 714c90df5..fe01347fd 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -81,6 +81,10 @@ export class AnnotationWrapper implements IListable { return this.IMAGE_HINT && this.superType === SuperTypes.Redaction; } + get isSkippedImageHint() { + return this.IMAGE_HINT && this.superType === SuperTypes.Hint; + } + get searchKey(): string { return this.id; } diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.html index 74d340e88..2013a2410 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.html @@ -1,9 +1,6 @@
-
+
diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts index a2f2de68a..c51877fb3 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts @@ -63,6 +63,10 @@ export class ResizeRedactionDialogComponent extends IqserDialogComponent< this.form = this.#getForm(); } + get dialogHeaderType() { + return this.data.redaction.HINT ? 'hint' : this.data.redaction.isSkippedImageHint ? 'image' : 'redaction'; + } + get displayedDictionaryLabel() { const dictType = this.form.get('dictionary').value; if (dictType) {