From cedf228048759d939ae17dda66ba7cfff32bf341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Wed, 29 Jun 2022 18:46:06 +0300 Subject: [PATCH] RED-4417: Add 'removed by manual override' to ignored hints reason --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 297fbf913..198f90aaa 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -359,8 +359,16 @@ export class AnnotationWrapper implements IListable, Record { content += 'Legal basis: ' + annotationWrapper.legalBasis + '\n\n'; } + if (annotationWrapper.hasBeenRemovedByManualOverride) { + content += 'Removed by manual override'; + } + if (entry.section) { - content += 'In section: "' + entry.section + '"'; + let prefix = 'In section: '; + if (content.length) { + prefix = ` ${prefix.toLowerCase()}`; + } + content += `${prefix} "${entry.section}"`; } annotationWrapper.shortContent = this._getShortContent(annotationWrapper, entry) || content;