RED-4417: Add 'removed by manual override' to ignored hints reason

This commit is contained in:
Adina Țeudan 2022-06-29 18:46:06 +03:00
parent 24a5346ef6
commit cedf228048

View File

@ -359,8 +359,16 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
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;