RED-6801 - Effective dossier dictionary in Dossier Settings
This commit is contained in:
parent
a75e7a3960
commit
d2cce57319
@ -108,7 +108,9 @@ export class EditDossierDictionaryComponent implements EditDossierSectionInterfa
|
||||
);
|
||||
//TODO remove this when backend will send also the type
|
||||
this.#setType(dictionaryTypes);
|
||||
this.selectDictionary(this.dictionaries[0], this.activeEntryType);
|
||||
if (!this.selectedDictionary) {
|
||||
this.selectDictionary(this.dictionaries[0], this.activeEntryType);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO remove this when backend will send also the type
|
||||
|
||||
@ -208,7 +208,7 @@ export class DictionaryManagerComponent implements OnChanges {
|
||||
if (!changes.isLeavingPage) {
|
||||
this.revert();
|
||||
}
|
||||
if (changes.activeEntryType && this._dossier?.dossierTemplateId && this.dossier?.dossierId) {
|
||||
if ((changes.selectedDictionaryType || changes.activeEntryType) && this._dossier?.dossierTemplateId && this.dossier?.dossierId) {
|
||||
this.#onDossierChanged(this._dossier.dossierTemplateId, this._dossier.dossierId).then(entries => {
|
||||
this.diffEditorText = entries;
|
||||
this.showDiffEditor = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user