Merge branch 'RED-9733' into 'master'
RED-9733: translated initials in workload icons. See merge request redactmanager/red-ui!653
This commit is contained in:
commit
e92c7632d5
@ -2,18 +2,33 @@
|
||||
<redaction-annotation-icon
|
||||
*ngIf="file.analysisRequired"
|
||||
[color]="analysisColor$ | async"
|
||||
label="A"
|
||||
[label]="(workloadTranslations['analysis'] | translate)[0]"
|
||||
type="square"
|
||||
></redaction-annotation-icon>
|
||||
<redaction-annotation-icon
|
||||
*ngIf="updated"
|
||||
[color]="updatedColor$ | async"
|
||||
[label]="(workloadTranslations['updated'] | translate)[0]"
|
||||
type="square"
|
||||
></redaction-annotation-icon>
|
||||
<redaction-annotation-icon *ngIf="updated" [color]="updatedColor$ | async" label="U" type="square"></redaction-annotation-icon>
|
||||
<redaction-annotation-icon
|
||||
*ngIf="file.hasRedactions"
|
||||
[color]="redactionColor$ | async"
|
||||
[label]="'redaction-abbreviation' | translate"
|
||||
type="square"
|
||||
></redaction-annotation-icon>
|
||||
<redaction-annotation-icon *ngIf="file.hasImages" [color]="imageColor$ | async" label="I" type="square"></redaction-annotation-icon>
|
||||
<redaction-annotation-icon *ngIf="file.hintsOnly" [color]="hintColor$ | async" label="H" type="circle"></redaction-annotation-icon>
|
||||
<redaction-annotation-icon
|
||||
*ngIf="file.hasImages"
|
||||
[color]="imageColor$ | async"
|
||||
[label]="(workloadTranslations['image'] | translate)[0]"
|
||||
type="square"
|
||||
></redaction-annotation-icon>
|
||||
<redaction-annotation-icon
|
||||
*ngIf="file.hintsOnly"
|
||||
[color]="hintColor$ | async"
|
||||
[label]="(workloadTranslations['hint'] | translate)[0]"
|
||||
type="circle"
|
||||
></redaction-annotation-icon>
|
||||
<mat-icon *ngIf="file.hasAnnotationComments" svgIcon="red:comment"></mat-icon>
|
||||
<ng-container *ngIf="noWorkloadItems"> -</ng-container>
|
||||
</div>
|
||||
|
||||
@ -10,6 +10,7 @@ import { AnnotationIconComponent } from '@shared/components/annotation-icon/anno
|
||||
import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { workloadTranslations } from '@translations/workload-translations';
|
||||
|
||||
@Component({
|
||||
selector: 'redaction-file-workload',
|
||||
@ -27,6 +28,7 @@ export class FileWorkloadComponent implements OnInit {
|
||||
analysisColor$: Observable<string>;
|
||||
hintColor$: Observable<string>;
|
||||
redactionColor$: Observable<string>;
|
||||
readonly workloadTranslations = workloadTranslations;
|
||||
|
||||
constructor(
|
||||
private readonly _userService: UserService,
|
||||
|
||||
@ -8,7 +8,9 @@
|
||||
>
|
||||
<redaction-annotation-icon
|
||||
[color]="dictionary.hexColor"
|
||||
[label]="dictionary.hint ? 'H' : 'R'"
|
||||
[label]="
|
||||
dictionary.hint ? (workloadTranslations['hint'] | translate)[0] : (workloadTranslations['redaction'] | translate)[0]
|
||||
"
|
||||
type="square"
|
||||
></redaction-annotation-icon>
|
||||
<div class="details">
|
||||
|
||||
@ -20,6 +20,7 @@ import { AnnotationIconComponent } from '@shared/components/annotation-icon/anno
|
||||
import { MatTooltip } from '@angular/material/tooltip';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { workloadTranslations } from '@translations/workload-translations';
|
||||
|
||||
@Component({
|
||||
selector: 'redaction-edit-dossier-dictionary',
|
||||
@ -47,6 +48,7 @@ export class EditDossierDictionaryComponent implements OnInit {
|
||||
activeEntryType = DictionaryEntryTypes.ENTRY;
|
||||
entriesToDisplay: List = [];
|
||||
readonly entryTypes = DictionaryEntryTypes;
|
||||
protected readonly workloadTranslations = workloadTranslations;
|
||||
@ViewChild(DictionaryManagerComponent, { static: false }) private readonly _dictionaryManager: DictionaryManagerComponent;
|
||||
|
||||
constructor(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user