RED-3528 -> Adjust Links for 'Remove from Dictionary' in Help Mode
This commit is contained in:
parent
12e55d7095
commit
1b44c77ba4
@ -149,7 +149,7 @@
|
|||||||
[tooltip]="'annotation-actions.remove-annotation.remove-from-dict' | translate"
|
[tooltip]="'annotation-actions.remove-annotation.remove-from-dict' | translate"
|
||||||
[type]="buttonType"
|
[type]="buttonType"
|
||||||
icon="red:remove-from-dict"
|
icon="red:remove-from-dict"
|
||||||
iqserHelpMode="remove_from_dictionary"
|
[iqserHelpMode]="removeFromDictionaryHelpModeKey"
|
||||||
[scrollableParentView]="scrollableParentView"
|
[scrollableParentView]="scrollableParentView"
|
||||||
></iqser-circle-button>
|
></iqser-circle-button>
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,12 @@ export const AnnotationButtonTypes = {
|
|||||||
|
|
||||||
export type AnnotationButtonType = keyof typeof 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({
|
@Component({
|
||||||
selector: 'redaction-annotation-actions',
|
selector: 'redaction-annotation-actions',
|
||||||
templateUrl: './annotation-actions.component.html',
|
templateUrl: './annotation-actions.component.html',
|
||||||
@ -127,4 +133,9 @@ export class AnnotationActionsComponent implements OnChanges {
|
|||||||
this.annotations,
|
this.annotations,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get removeFromDictionaryHelpModeKey() {
|
||||||
|
const type = this.annotations[0]?.typeLabel?.split('.')[1];
|
||||||
|
return helpModeKey[type];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,8 +119,20 @@
|
|||||||
"it": "",
|
"it": "",
|
||||||
"fr": ""
|
"fr": ""
|
||||||
},
|
},
|
||||||
"remove_from_dictionary": {
|
"skipped_remove_from_dictionary": {
|
||||||
"en": "/en/index-en.html?contextId=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": "",
|
"de": "",
|
||||||
"it": "",
|
"it": "",
|
||||||
"fr": ""
|
"fr": ""
|
||||||
|
|||||||
@ -1626,7 +1626,7 @@
|
|||||||
},
|
},
|
||||||
"reports": "Reports",
|
"reports": "Reports",
|
||||||
"reports-screen": {
|
"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": {
|
"descriptions": {
|
||||||
"dossier-attributes": "This placeholder gets replaced with the value of the dossier attribute <code>{attribute}</code>.",
|
"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>.",
|
"file-attributes": "This placeholder gets replaced with the value of the file attribute <code>{attribute}</code>.",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user