Merge branch 'RED-9542' into 'master'
RED-9542: fixed resize dialog header. See merge request redactmanager/red-ui!511
This commit is contained in:
commit
a87e4c7472
@ -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;
|
||||
}
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user