RED-4894 - DocumentView "no redactions" icon in legend doesn't match the list
This commit is contained in:
parent
c53252c132
commit
60cb73618f
@ -5,12 +5,7 @@
|
||||
label="A"
|
||||
type="square"
|
||||
></redaction-annotation-icon>
|
||||
<redaction-annotation-icon
|
||||
*ngIf="file.hasUpdates && file.assignee === userService.currentUser.id && !file.isApproved"
|
||||
[color]="updatedColor$ | async"
|
||||
label="U"
|
||||
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"
|
||||
@ -26,4 +21,5 @@
|
||||
type="rhombus"
|
||||
></redaction-annotation-icon>
|
||||
<mat-icon *ngIf="file.hasAnnotationComments" svgIcon="red:comment"></mat-icon>
|
||||
<ng-container *ngIf="noWorkloadItems"> - </ng-container>
|
||||
</div>
|
||||
|
||||
@ -26,7 +26,7 @@ export class FileWorkloadComponent implements OnInit {
|
||||
#dossierTemplateId: string;
|
||||
|
||||
constructor(
|
||||
readonly userService: UserService,
|
||||
private readonly _userService: UserService,
|
||||
private readonly _defaultColorsService: DefaultColorsService,
|
||||
private readonly _dossiersService: DossiersService,
|
||||
private readonly _dictionariesMapService: DictionariesMapService,
|
||||
@ -45,4 +45,20 @@ export class FileWorkloadComponent implements OnInit {
|
||||
#getDefaultColor$(type: DefaultBasedColorType): Observable<string> {
|
||||
return this._defaultColorsService.getColor$(this.#dossierTemplateId, annotationDefaultColorConfig[type]);
|
||||
}
|
||||
|
||||
get updated(): boolean {
|
||||
return this.file.hasUpdates && this.file.assignee === this._userService.currentUser.id && !this.file.isApproved;
|
||||
}
|
||||
|
||||
get noWorkloadItems(): boolean {
|
||||
return (
|
||||
!this.updated &&
|
||||
!this.file.analysisRequired &&
|
||||
!this.file.hasRedactions &&
|
||||
!this.file.hasImages &&
|
||||
!this.file.hintsOnly &&
|
||||
!this.file.hasSuggestions &&
|
||||
!this.file.hasAnnotationComments
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user