Merge branch 'master' into VM/RED-8748
This commit is contained in:
commit
52c6dfed5b
@ -18,6 +18,7 @@
|
||||
[id]="'assign-reviewer'"
|
||||
[translate]="'file-preview.assign-reviewer'"
|
||||
class="assign-reviewer pointer"
|
||||
iqserStopPropagation
|
||||
></div>
|
||||
|
||||
<redaction-assign-user-dropdown
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Component, HostListener } from '@angular/core';
|
||||
import {
|
||||
CircleButtonComponent,
|
||||
IconButtonComponent,
|
||||
@ -59,6 +59,11 @@ export class EditDictionaryDialogComponent extends IqserDialogComponent<EditDict
|
||||
super();
|
||||
}
|
||||
|
||||
@HostListener('window:keydown.Escape')
|
||||
closeOnEscape(): void {
|
||||
this.close();
|
||||
}
|
||||
|
||||
async save() {
|
||||
this._loadingService.start();
|
||||
try {
|
||||
@ -68,12 +73,13 @@ export class EditDictionaryDialogComponent extends IqserDialogComponent<EditDict
|
||||
this.data.dossierId,
|
||||
this.form.controls.addToDictionaryAction.value,
|
||||
);
|
||||
this.close(this.form.value as ReturnType);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
this._toaster.error(_('edit-dossier-dialog.dictionary.edit-dialog.error.generic'));
|
||||
this.close();
|
||||
}
|
||||
|
||||
this._loadingService.stop();
|
||||
this.close(this.form.value as ReturnType);
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,6 +39,7 @@
|
||||
*ngIf="selectedDictionary.dossierDictionaryOnly && selectedDictionary.hasDictionary"
|
||||
(action)="openEditDictionaryModal()"
|
||||
[size]="20"
|
||||
[tooltip]="'edit-dossier-dialog.dictionary.edit-button-tooltip' | translate"
|
||||
icon="iqser:edit"
|
||||
class="p-left-8"
|
||||
></iqser-circle-button>
|
||||
|
||||
@ -118,7 +118,9 @@ export class EditDossierDictionaryComponent implements OnInit {
|
||||
})
|
||||
.result();
|
||||
|
||||
this.selectedDictionary = { ...this.selectedDictionary, addToDictionaryAction: result.addToDictionaryAction } as Dictionary;
|
||||
if (result) {
|
||||
this.selectedDictionary = { ...this.selectedDictionary, addToDictionaryAction: result.addToDictionaryAction } as Dictionary;
|
||||
}
|
||||
await this.#retrieveDictionaries();
|
||||
}
|
||||
|
||||
|
||||
@ -1142,6 +1142,7 @@
|
||||
"change-successful": "Dossier wurde aktualisiert.",
|
||||
"delete-successful": "Dossier wurde gelöscht.",
|
||||
"dictionary": {
|
||||
"edit-button-tooltip": "",
|
||||
"edit-dialog": {
|
||||
"add-to-dictionary-action": "Available in add/edit dialogs in this dossier",
|
||||
"cancel": "Cancel",
|
||||
@ -1999,7 +2000,7 @@
|
||||
"revert-text": "Revert to selected text",
|
||||
"type": "Type",
|
||||
"type-placeholder": "Select type...",
|
||||
"unchanged": ""
|
||||
"unchanged": "Unchanged"
|
||||
},
|
||||
"title": "Redact text"
|
||||
}
|
||||
@ -2064,15 +2065,15 @@
|
||||
"label": "Remove from dossier in this context"
|
||||
},
|
||||
"in-dossier": {
|
||||
"description": "Do not {type, select, hint{annotate} other{redact}} the selected term in any document of this dossier.",
|
||||
"description-bulk": "Do not auto-redact the selected term in this dossier.",
|
||||
"description": "Do not {type, select, hint{annotate} other{auto-redact}} the selected term in any document of this dossier.",
|
||||
"description-bulk": "Do not {type, select, hint{annotate} other{auto-redact}} the selected terms in this dossier.",
|
||||
"extraOptionLabel": "Apply to all active and future dossiers",
|
||||
"label": "Remove from dossier",
|
||||
"label-bulk": "Remove from dossier"
|
||||
},
|
||||
"only-here": {
|
||||
"description": "Do not {type, select, hint{annotate} other{redact}} the term at this position in this document.",
|
||||
"description-bulk": "Do not redact the selected terms at this position in this document.",
|
||||
"description": "Do not {type, select, hint{annotate} other{redact}} the term at this position in the current document.",
|
||||
"description-bulk": "Do not {type, select, hint{annotate} other{redact}} the selected terms at this position in the current document.",
|
||||
"label": "Remove here"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1142,6 +1142,7 @@
|
||||
"change-successful": "Dossier {dossierName} was updated.",
|
||||
"delete-successful": "Dossier {dossierName} was deleted.",
|
||||
"dictionary": {
|
||||
"edit-button-tooltip": "Edit dossier dictionary settings",
|
||||
"edit-dialog": {
|
||||
"add-to-dictionary-action": "Available in add/edit dialogs in this dossier",
|
||||
"cancel": "Cancel",
|
||||
@ -2064,15 +2065,15 @@
|
||||
"label": "Remove from dossier in this context"
|
||||
},
|
||||
"in-dossier": {
|
||||
"description": "Do not {type, select, hint{annotate} other{redact}} the selected term in any document of this dossier.",
|
||||
"description-bulk": "Do not auto-redact the selected term in this dossier.",
|
||||
"description": "Do not {type, select, hint{annotate} other{auto-redact}} the selected term in any document of this dossier.",
|
||||
"description-bulk": "Do not {type, select, hint{annotate} other{auto-redact}} the selected terms in this dossier.",
|
||||
"extraOptionLabel": "Apply to all active and future dossiers",
|
||||
"label": "Remove from dossier",
|
||||
"label-bulk": "Remove from dossier"
|
||||
},
|
||||
"only-here": {
|
||||
"description": "Do not {type, select, hint{annotate} other{redact}} the term at this position in this document.",
|
||||
"description-bulk": "Do not redact the selected terms at this position in this document.",
|
||||
"description": "Do not {type, select, hint{annotate} other{redact}} the term at this position in the current document.",
|
||||
"description-bulk": "Do not {type, select, hint{annotate} other{redact}} the selected terms at this position in the current document.",
|
||||
"label": "Remove here"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1142,6 +1142,7 @@
|
||||
"change-successful": "Dossier wurde aktualisiert.",
|
||||
"delete-successful": "Dossier wurde gelöscht.",
|
||||
"dictionary": {
|
||||
"edit-button-tooltip": "",
|
||||
"edit-dialog": {
|
||||
"add-to-dictionary-action": "",
|
||||
"cancel": "",
|
||||
|
||||
@ -1142,6 +1142,7 @@
|
||||
"change-successful": "Dossier {dossierName} was updated.",
|
||||
"delete-successful": "Dossier {dossierName} was deleted.",
|
||||
"dictionary": {
|
||||
"edit-button-tooltip": "",
|
||||
"edit-dialog": {
|
||||
"add-to-dictionary-action": "",
|
||||
"cancel": "",
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
@use 'ngx-toastr/toastr';
|
||||
@use 'red-material-theme';
|
||||
@use 'red-components';
|
||||
@use 'red-editor';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user