RED-3540, RED-3541 -> adjust links in HelpMode
This commit is contained in:
parent
938605c18e
commit
dd60b49348
@ -33,7 +33,7 @@
|
||||
[tooltip]="'annotation-actions.resize.label' | translate"
|
||||
[type]="buttonType"
|
||||
icon="red:resize"
|
||||
iqserHelpMode="redaction_resize_redaction"
|
||||
[iqserHelpMode]="helpModeKey + '_resize'"
|
||||
[scrollableParentView]="scrollableParentView"
|
||||
></iqser-circle-button>
|
||||
|
||||
@ -149,7 +149,7 @@
|
||||
[tooltip]="'annotation-actions.remove-annotation.remove-from-dict' | translate"
|
||||
[type]="buttonType"
|
||||
icon="red:remove-from-dict"
|
||||
[iqserHelpMode]="removeFromDictionaryHelpModeKey"
|
||||
[iqserHelpMode]="helpModeKey + '_remove_from_dictionary'"
|
||||
[scrollableParentView]="scrollableParentView"
|
||||
></iqser-circle-button>
|
||||
|
||||
@ -160,7 +160,7 @@
|
||||
[tooltip]="'annotation-actions.remove-annotation.false-positive' | translate"
|
||||
[type]="buttonType"
|
||||
icon="red:thumb-down"
|
||||
iqserHelpMode="redaction_false_positive"
|
||||
[iqserHelpMode]="helpModeKey + '_false_positive'"
|
||||
[scrollableParentView]="scrollableParentView"
|
||||
></iqser-circle-button>
|
||||
|
||||
@ -171,7 +171,7 @@
|
||||
[tooltip]="'annotation-actions.remove-annotation.only-here' | translate"
|
||||
[type]="buttonType"
|
||||
icon="iqser:trash"
|
||||
iqserHelpMode="redaction_remove_only_here"
|
||||
[iqserHelpMode]="helpModeKey + '_remove_only_here'"
|
||||
[scrollableParentView]="scrollableParentView"
|
||||
></iqser-circle-button>
|
||||
</ng-container>
|
||||
|
||||
@ -17,12 +17,6 @@ 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',
|
||||
@ -134,8 +128,7 @@ export class AnnotationActionsComponent implements OnChanges {
|
||||
);
|
||||
}
|
||||
|
||||
get removeFromDictionaryHelpModeKey() {
|
||||
const type = this.annotations[0]?.typeLabel?.split('.')[1];
|
||||
return helpModeKey[type];
|
||||
get helpModeKey() {
|
||||
return this.annotations[0]?.typeLabel?.split('.')[1];
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,13 +119,19 @@
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"recommendation_false_positive": {
|
||||
"en": "/en/index-en.html?contextId=recommendation_false_positive",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"skipped_remove_from_dictionary": {
|
||||
"en": "/en/index-en.html?contextId=skipped_remove_from_dictionary",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"hints_remove_from_dictionary": {
|
||||
"hint_remove_from_dictionary": {
|
||||
"en": "/en/index-en.html?contextId=hints_remove_from_dictionary",
|
||||
"de": "",
|
||||
"it": "",
|
||||
@ -143,6 +149,12 @@
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"hint_remove_only_here": {
|
||||
"en": "/en/index-en.html?contextId=hint_remove_only_here",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"reset_filters": {
|
||||
"en": "/en/index-en.html?contextId=reset_filters",
|
||||
"de": "",
|
||||
@ -191,12 +203,18 @@
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"redaction_resize_redaction": {
|
||||
"redaction_resize": {
|
||||
"en": "/en/index-en.html?contextId=redaction_resize_redaction",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"recommendation_resize": {
|
||||
"en": "/en/index-en.html?contextId=recommendation_resize",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"skipped_force_redaction": {
|
||||
"en": "/en/index-en.html?contextId=skipped_force_redaction",
|
||||
"de": "",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user