Merge branch 'VM/RED-9401' into 'master'
RED-9401 - Show manual changes icon in workload for all entries with MANUAL engine Closes RED-9401 See merge request redactmanager/red-ui!491
This commit is contained in:
commit
33e0daee77
@ -51,13 +51,20 @@ export class AnnotationDetailsComponent implements OnChanges {
|
||||
getChangesTooltip(): string | undefined {
|
||||
const changes = changesProperties.filter(key => this.annotation.item[key]);
|
||||
|
||||
if (!changes.length || !this.annotation.item.engines?.includes(LogEntryEngines.MANUAL)) {
|
||||
if (!changes.length && !this.annotation.item.engines?.includes(LogEntryEngines.MANUAL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const details = [];
|
||||
if (this.annotation.item.engines?.includes(LogEntryEngines.MANUAL)) {
|
||||
details.push(this._translateService.instant(_('annotation-changes.added-locally')));
|
||||
}
|
||||
|
||||
if (changes.length) {
|
||||
details.push(...changes.map(change => this._translateService.instant(annotationChangesTranslations[change])));
|
||||
}
|
||||
|
||||
const header = this._translateService.instant(_('annotation-changes.header'));
|
||||
const details = [this._translateService.instant(_('annotation-changes.added-locally'))];
|
||||
details.push(...changes.map(change => this._translateService.instant(annotationChangesTranslations[change])));
|
||||
return [header, ...details.map(change => `• ${change}`)].join('\n');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user