RED-4650: Dossier dictionary dialog updates
This commit is contained in:
parent
759fba077a
commit
79558a7885
@ -1,5 +1,5 @@
|
||||
<section class="dialog">
|
||||
<div class="dialog-header heading-l">{{ 'dictionary-details.title' | translate }}</div>
|
||||
<div class="dialog-header heading-l">{{ 'dictionary-details.title' | translate: { readOnly: data.readOnly } }}</div>
|
||||
|
||||
<div class="dialog-content">
|
||||
<redaction-add-edit-entity
|
||||
|
||||
@ -77,7 +77,6 @@ export class AddEditEntityComponent extends BaseFormComponent implements OnInit
|
||||
try {
|
||||
if (this.entity) {
|
||||
// edit mode
|
||||
console.log({ dossierId: this.dossierId });
|
||||
await firstValueFrom(
|
||||
this._dictionaryService.updateDictionary(dictionary, this.dossierTemplateId, dictionary.type, this.dossierId),
|
||||
);
|
||||
@ -148,7 +147,7 @@ export class AddEditEntityComponent extends BaseFormComponent implements OnInit
|
||||
});
|
||||
}
|
||||
|
||||
if (this.entity?.hasDictionary) {
|
||||
if (this.entity?.hasDictionary || this.#isDossierRedaction) {
|
||||
Object.assign(controlsConfig, {
|
||||
addToDictionaryAction: [this.#addToDictionaryActionControl],
|
||||
});
|
||||
|
||||
@ -627,7 +627,7 @@
|
||||
"cancel": "Cancel",
|
||||
"save": "Save"
|
||||
},
|
||||
"title": "Edit Dossier Dictionary"
|
||||
"title": "{readOnly, select, false{Edit } other{}}Dossier Dictionary"
|
||||
},
|
||||
"dictionary-overview": {
|
||||
"compare": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user