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