Merge branch 'nicoleta' into 'master'

RED-3800: fix error code.

See merge request redactmanager/red-ui!278
This commit is contained in:
Valentin-Gabriel Mihai 2024-01-31 09:11:24 +01:00
commit 5795e98eb2
3 changed files with 6 additions and 2 deletions

View File

@ -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"

View File

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

View File

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