RED-6005 - type changes
This commit is contained in:
parent
9db8117b1d
commit
a37e36dff1
@ -473,22 +473,42 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
|
||||
break;
|
||||
case ManualRedactionTypes.REMOVE_FROM_DICTIONARY:
|
||||
if (redactionLogEntry.redacted) {
|
||||
switch (lastManualChange.annotationStatus) {
|
||||
case LogEntryStatuses.APPROVED:
|
||||
return SuperTypes.Skipped;
|
||||
case LogEntryStatuses.DECLINED:
|
||||
return SuperTypes.Redaction;
|
||||
case LogEntryStatuses.REQUESTED:
|
||||
return SuperTypes.SuggestionRemoveDictionary;
|
||||
if (lastManualChange.processed) {
|
||||
switch (lastManualChange.annotationStatus) {
|
||||
case LogEntryStatuses.APPROVED:
|
||||
return SuperTypes.Skipped;
|
||||
case LogEntryStatuses.DECLINED:
|
||||
return SuperTypes.Redaction;
|
||||
case LogEntryStatuses.REQUESTED:
|
||||
return SuperTypes.SuggestionRemoveDictionary;
|
||||
}
|
||||
} else {
|
||||
switch (lastManualChange.annotationStatus) {
|
||||
case LogEntryStatuses.APPROVED:
|
||||
case LogEntryStatuses.DECLINED:
|
||||
return SuperTypes.Redaction;
|
||||
case LogEntryStatuses.REQUESTED:
|
||||
return SuperTypes.SuggestionRemoveDictionary;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
switch (lastManualChange.annotationStatus) {
|
||||
case LogEntryStatuses.APPROVED:
|
||||
return SuperTypes.Redaction;
|
||||
case LogEntryStatuses.DECLINED:
|
||||
return isHintDictionary ? SuperTypes.Hint : SuperTypes.Skipped;
|
||||
case LogEntryStatuses.REQUESTED:
|
||||
return SuperTypes.SuggestionRemoveDictionary;
|
||||
if (lastManualChange.processed) {
|
||||
switch (lastManualChange.annotationStatus) {
|
||||
case LogEntryStatuses.APPROVED:
|
||||
return SuperTypes.Redaction;
|
||||
case LogEntryStatuses.DECLINED:
|
||||
return isHintDictionary ? SuperTypes.Hint : SuperTypes.Skipped;
|
||||
case LogEntryStatuses.REQUESTED:
|
||||
return SuperTypes.SuggestionRemoveDictionary;
|
||||
}
|
||||
} else {
|
||||
switch (lastManualChange.annotationStatus) {
|
||||
case LogEntryStatuses.APPROVED:
|
||||
case LogEntryStatuses.DECLINED:
|
||||
return isHintDictionary ? SuperTypes.Hint : SuperTypes.Skipped;
|
||||
case LogEntryStatuses.REQUESTED:
|
||||
return SuperTypes.SuggestionRemoveDictionary;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<div *ngIf="!annotation.isEarmark" class="actions-wrapper">
|
||||
<div
|
||||
(click)="comments.toggleExpandComments($event)"
|
||||
[matTooltip]="'comments.comments' | translate: { count: annotation.comments?.length }"
|
||||
[matTooltip]="'comments.comments' | translate : { count: annotation.comments?.length }"
|
||||
class="comments-counter"
|
||||
matTooltipPosition="above"
|
||||
>
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 03d63fc78e36cbb36dbaee65bd5638eb3d501eb9
|
||||
Subproject commit e6fcc2b9f0f7c199c83cf57ff4e84ce7307b8026
|
||||
Loading…
x
Reference in New Issue
Block a user