RED-3526: Display suggestions in preview mode

This commit is contained in:
Adina Țeudan 2022-03-16 20:34:20 +02:00
parent f928d32b65
commit cb0e890a7d
3 changed files with 14 additions and 4 deletions

View File

@ -160,6 +160,10 @@ export class AnnotationWrapper {
return this.superType === SuperTypes.SuggestionRemove || this.superType === SuperTypes.SuggestionRemoveDictionary;
}
get isSuggestionLegalBasisChange() {
return this.superType === SuperTypes.SuggestionChangeLegalBasis;
}
get isModifyDictionary() {
return this.dictionaryOperation;
}
@ -208,7 +212,13 @@ export class AnnotationWrapper {
}
get previewAnnotation() {
return this.isRedacted || this.isSuggestionAdd;
return (
this.isRedacted ||
this.isSuggestionAdd ||
this.isSuggestionResize ||
this.isSuggestionLegalBasisChange ||
this.isSuggestionRecategorizeImage
);
}
static fromHighlight(color: string, entry: ImportedRedaction) {

View File

@ -77,7 +77,7 @@ export class AnnotationDetailsComponent implements OnChanges {
},
{
icon: 'red:rule',
description: this._translateService.instant('annotation-engines.rule', { rule: this.annotation.legalBasisValue }),
description: this._translateService.instant('annotation-engines.rule', { rule: this.annotation.legalBasisValue || '' }),
show: this._isBasedOn(Engines.RULE),
},
];

View File

@ -1,7 +1,7 @@
{
"ADMIN_CONTACT_NAME": null,
"ADMIN_CONTACT_URL": null,
"API_URL": "https://dev-05.iqser.cloud/redaction-gateway-v1",
"API_URL": "https://dev-08.iqser.cloud/redaction-gateway-v1",
"APP_NAME": "RedactManager",
"AUTO_READ_TIME": 3,
"BACKEND_APP_VERSION": "4.4.40",
@ -17,7 +17,7 @@
"MAX_RETRIES_ON_SERVER_ERROR": 3,
"OAUTH_CLIENT_ID": "redaction",
"OAUTH_IDP_HINT": null,
"OAUTH_URL": "https://dev-05.iqser.cloud/auth/realms/redaction",
"OAUTH_URL": "https://dev-08.iqser.cloud/auth/realms/redaction",
"RECENT_PERIOD_IN_HOURS": 24,
"SELECTION_MODE": "structural",
"MANUAL_BASE_URL": "https://docs.redactmanager.com/preview"