RED-9542: fixed resize dialog header.

This commit is contained in:
Nicoleta Panaghiu 2024-07-25 16:44:57 +03:00
parent e3325bb620
commit ebc074c308
3 changed files with 9 additions and 4 deletions

View File

@ -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;
}

View File

@ -1,9 +1,6 @@
<section class="dialog">
<form (submit)="save()" [formGroup]="form">
<div
[innerHTML]="'resize-redaction.dialog.header' | translate: { type: redaction.HINT ? 'hint' : 'redaction' }"
class="dialog-header heading-l"
></div>
<div [innerHTML]="'resize-redaction.dialog.header' | translate: { type: dialogHeaderType }" class="dialog-header heading-l"></div>
<div class="dialog-content redaction">
<ng-container *ngIf="!redaction.isImage && !redaction.AREA">

View File

@ -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) {