WIP RED-2657 -> added more keys

This commit is contained in:
Valentin Mihai 2022-02-16 13:06:50 +02:00
parent 04edeb0da4
commit 5aee1e91aa
6 changed files with 27 additions and 7 deletions

View File

@ -33,6 +33,7 @@
[tooltip]="'annotation-actions.resize.label' | translate"
[type]="buttonType"
icon="red:resize"
iqserHelpMode="redaction_resize_redaction"
></iqser-circle-button>
<iqser-circle-button
@ -107,6 +108,7 @@
[tooltip]="'annotation-actions.force-redaction.label' | translate"
[type]="buttonType"
icon="red:thumb-up"
iqserHelpMode="skipped_force_redaction"
></iqser-circle-button>
<iqser-circle-button
@ -143,7 +145,7 @@
[tooltip]="'annotation-actions.remove-annotation.remove-from-dict' | translate"
[type]="buttonType"
icon="red:remove-from-dict"
iqserHelpMode="redaction_remove_from_dictionary"
iqserHelpMode="skipped_remove_from_dictionary"
></iqser-circle-button>
<iqser-circle-button

View File

@ -25,7 +25,11 @@
<div class="vertical-line"></div>
<redaction-file-actions [file]="file" type="file-preview"></redaction-file-actions>
<redaction-file-actions
[file]="file"
type="file-preview"
fileActionsHelpModeKey="editor_document_features"
></redaction-file-actions>
<iqser-circle-button
(action)="toggleFullScreen()"

View File

@ -22,6 +22,7 @@
[buttonType]="buttonType"
[maxWidth]="maxWidth"
[tooltipPosition]="tooltipPosition"
[helpModeKey]="fileActionsHelpModeKey"
></redaction-expandable-file-actions>
</div>
</ng-template>

View File

@ -51,6 +51,7 @@ export class FileActionsComponent extends AutoUnsubscribe implements OnDestroy,
@Input() file: File;
@Input() type: 'file-preview' | 'dossier-overview-list' | 'dossier-overview-workflow';
@Input() maxWidth: number;
@Input() fileActionsHelpModeKey: 'document_features' | 'editor_document_features' = 'document_features';
toggleTooltip?: string;
assignTooltip?: string;

View File

@ -17,11 +17,11 @@ export class ExpandableFileActionsComponent implements OnChanges {
@Input() actions: Action[];
@Input() buttonType: CircleButtonType;
@Input() tooltipPosition: IqserTooltipPosition;
@Input() helpModeKey: 'document_features' | 'editor_document_features';
displayedButtons: Action[];
hiddenButtons: Action[];
expanded = false;
helpModeKey: string = 'document_features';
constructor(
private readonly _fileDownloadService: FileDownloadService,

View File

@ -47,7 +47,7 @@
"it": "",
"fr": ""
},
"edit_reason": {
"redaction_edit_reason": {
"en": "",
"de": "",
"it": "",
@ -119,7 +119,7 @@
"it": "",
"fr": ""
},
"redaction_remove_from_dictionary": {
"skipped_remove_from_dictionary": {
"en": "",
"de": "",
"it": "",
@ -179,13 +179,25 @@
"it": "",
"fr": ""
},
"document_features": {
"edit_dossier_in_dossier": {
"en": "",
"de": "",
"it": "",
"fr": ""
},
"edit_dossier_in_dossier": {
"redaction_resize_redaction": {
"en": "",
"de": "",
"it": "",
"fr": ""
},
"skipped_force_redaction": {
"en": "",
"de": "",
"it": "",
"fr": ""
},
"editor_document_features": {
"en": "",
"de": "",
"it": "",