Merge branch 'nicoleta' into 'master'
RED-3800: fix error code. See merge request redactmanager/red-ui!278
This commit is contained in:
commit
5795e98eb2
@ -8,7 +8,7 @@
|
||||
|
||||
<div class="dialog-content redaction" [class.fixed-height]="isRedacted && isImage">
|
||||
<div *ngIf="!isImage">
|
||||
<label [translate]="editRedactionLabelsTranslations[label]"></label>
|
||||
<label [translate]="labelTranslation"></label>
|
||||
<div *ngIf="!!redactedTexts.length && !allRectangles" class="iqser-input-group">
|
||||
<cdk-virtual-scroll-viewport
|
||||
[itemSize]="16"
|
||||
|
||||
@ -107,6 +107,10 @@ export class EditRedactionDialogComponent
|
||||
return this.allRectangles ? 'customRectangle' : this.isImported ? 'imported' : 'redactedText';
|
||||
}
|
||||
|
||||
get labelTranslation() {
|
||||
return editRedactionLabelsTranslations[this.label];
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
this.#setTypes();
|
||||
const data = await firstValueFrom(this._justificationsService.loadAll(this.#dossier.dossierTemplateId));
|
||||
|
||||
@ -36,4 +36,4 @@ export const editRedactionLabelsTranslations = {
|
||||
redactedText: _('edit-redaction.dialog.content.redacted-text'),
|
||||
customRectangle: _('edit-redaction.dialog.content.custom-rectangle'),
|
||||
imported: _('edit-redaction.dialog.content.imported'),
|
||||
};
|
||||
} as const;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user