diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.html index 72e3a0349..387651e5e 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.html @@ -1,23 +1,9 @@
-
+
-
+
+ +
@@ -55,9 +41,9 @@ [type]="iconButtonTypes.primary" > -
+
- + diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.ts index 18431093d..c35182ab6 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/remove-annotations-dialog/remove-annotations-dialog.component.ts @@ -17,6 +17,13 @@ export interface RemoveAnnotationsDialogInput { styleUrls: ['./remove-annotations-dialog.component.scss'], }) export class RemoveAnnotationsDialogComponent extends BaseDialogComponent { + protected readonly _headerTitle = this.data.removeFromDictionary + ? this._translateService.instant('remove-annotations-dialog.remove-from-dictionary.title', { hint: this.data.hint }) + : this._translateService.instant('remove-annotations-dialog.remove-only-here.title', { hint: this.data.hint }); + protected readonly _contentTitle = this.data.removeFromDictionary + ? this._translateService.instant('remove-annotations-dialog.remove-from-dictionary.question', { hint: this.data.hint }) + : this._translateService.instant('remove-annotations-dialog.remove-only-here.question', { hint: this.data.hint }); + constructor( private readonly _translateService: TranslateService, protected readonly _dialogRef: MatDialogRef, diff --git a/libs/common-ui b/libs/common-ui index 063f019de..2fe65233b 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit 063f019de1336a5dc94a8a420f3e7d4b809ad150 +Subproject commit 2fe65233bc4186ba67c924efae4d82cfb8b89fe7