Merge branch 'RED-9542' into 'master'

RED-9542: fixed resize dialog header.

See merge request redactmanager/red-ui!511
This commit is contained in:
Dan Percic 2024-07-25 15:47:08 +02:00
commit a87e4c7472
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) {