RED-3528 -> Adjust Links for 'Remove from Dictionary' in Help Mode

This commit is contained in:
Valentin Mihai 2022-03-07 21:00:13 +02:00
parent 12e55d7095
commit 1b44c77ba4
4 changed files with 27 additions and 4 deletions

View File

@ -149,7 +149,7 @@
[tooltip]="'annotation-actions.remove-annotation.remove-from-dict' | translate"
[type]="buttonType"
icon="red:remove-from-dict"
iqserHelpMode="remove_from_dictionary"
[iqserHelpMode]="removeFromDictionaryHelpModeKey"
[scrollableParentView]="scrollableParentView"
></iqser-circle-button>

View File

@ -17,6 +17,12 @@ export const AnnotationButtonTypes = {
export type AnnotationButtonType = keyof typeof AnnotationButtonTypes;
const helpModeKey = {
hint: 'hints_remove_from_dictionary',
recommendation: 'recommendation_remove_from_dictionary',
skipped: 'skipped_remove_from_dictionary',
};
@Component({
selector: 'redaction-annotation-actions',
templateUrl: './annotation-actions.component.html',
@ -127,4 +133,9 @@ export class AnnotationActionsComponent implements OnChanges {
this.annotations,
);
}
get removeFromDictionaryHelpModeKey() {
const type = this.annotations[0]?.typeLabel?.split('.')[1];
return helpModeKey[type];
}
}

View File

@ -119,8 +119,20 @@
"it": "",
"fr": ""
},
"remove_from_dictionary": {
"en": "/en/index-en.html?contextId=remove_from_dictionary",
"skipped_remove_from_dictionary": {
"en": "/en/index-en.html?contextId=skipped_remove_from_dictionary",
"de": "",
"it": "",
"fr": ""
},
"hints_remove_from_dictionary": {
"en": "/en/index-en.html?contextId=hints_remove_from_dictionary",
"de": "",
"it": "",
"fr": ""
},
"recommendation_remove_from_dictionary": {
"en": "/en/index-en.html?contextId=recommendation_remove_from_dictionary",
"de": "",
"it": "",
"fr": ""

View File

@ -1626,7 +1626,7 @@
},
"reports": "Reports",
"reports-screen": {
"description": "Below, you will find a list of placeholders for dossier and document-specific information. You can include these placeholders in your report templates.",
"description": "Below, you will find a list of placeholders for dossier- and document-specific information. You can include these placeholders in your report templates.",
"descriptions": {
"dossier-attributes": "This placeholder gets replaced with the value of the dossier attribute <code>{attribute}</code>.",
"file-attributes": "This placeholder gets replaced with the value of the file attribute <code>{attribute}</code>.",