RED-4155: Add "who has approved the file" information to file status

This commit is contained in:
Adina Țeudan 2022-06-14 21:44:17 +03:00
parent fc3d90a5ba
commit 55690fc5ce
3 changed files with 12 additions and 6 deletions

View File

@ -12,8 +12,13 @@
<ng-container *ngIf="permissionsService.isApprover(dossier) && !!file.lastReviewer"> <ng-container *ngIf="permissionsService.isApprover(dossier) && !!file.lastReviewer">
<div class="vertical-line"></div> <div class="vertical-line"></div>
<div class="all-caps-label mr-16 ml-8" translate="file-preview.last-reviewer"></div> <div class="all-caps-label mr-16 ml-8">
<redaction-initials-avatar [user]="file.lastReviewer" [withName]="true"></redaction-initials-avatar> {{ 'file-preview.last-assignee' | translate: { status: file.workflowStatus } }}
</div>
<redaction-initials-avatar
[user]="file.isApproved ? file.lastApprover : file.lastReviewer"
[withName]="true"
></redaction-initials-avatar>
</ng-container> </ng-container>
<div class="vertical-line"></div> <div class="vertical-line"></div>

View File

@ -631,6 +631,7 @@
}, },
"download": "", "download": "",
"error": { "error": {
"400": "",
"entries-too-short": "Einige Einträge im Wörterbuch unterschreiten die Mindestlänge von 2 Zeichen. Diese sind rot markiert.", "entries-too-short": "Einige Einträge im Wörterbuch unterschreiten die Mindestlänge von 2 Zeichen. Diese sind rot markiert.",
"generic": "Es ist ein Fehler aufgetreten ... Das Wörterbuch konnte nicht aktualisiert werden!" "generic": "Es ist ein Fehler aufgetreten ... Das Wörterbuch konnte nicht aktualisiert werden!"
}, },
@ -1305,7 +1306,7 @@
"convert": "", "convert": "",
"remove": "" "remove": ""
}, },
"last-reviewer": "Zuletzt überprüft von:", "last-assignee": "Zuletzt überprüft von:",
"no-data": { "no-data": {
"title": "Auf dieser Seite gibt es keine Anmerkungen." "title": "Auf dieser Seite gibt es keine Anmerkungen."
}, },

View File

@ -631,9 +631,9 @@
}, },
"download": "Download current entries", "download": "Download current entries",
"error": { "error": {
"400": "Cannot update dictionary because at least one of the newly added words where recognized as a general term that appear too often in texts.",
"entries-too-short": "Some entries of the dictionary are below the minimum length of 2. These are highlighted with red!", "entries-too-short": "Some entries of the dictionary are below the minimum length of 2. These are highlighted with red!",
"generic": "Something went wrong... Dictionary update failed!", "generic": "Something went wrong... Dictionary update failed!"
"400": "Cannot update dictionary because at least one of the newly added words where recognized as a general term that appear too often in texts."
}, },
"revert-changes": "Revert", "revert-changes": "Revert",
"save-changes": "Save Changes", "save-changes": "Save Changes",
@ -1306,7 +1306,7 @@
"convert": "Convert highlights", "convert": "Convert highlights",
"remove": "Remove highlights" "remove": "Remove highlights"
}, },
"last-reviewer": "Last Reviewed by:", "last-assignee": "{status, select, APPROVED{Approved} UNDER_APPROVAL{Reviewed} other{Last reviewed}} by:",
"no-data": { "no-data": {
"title": "There have been no changes to this page." "title": "There have been no changes to this page."
}, },