RED-6801 - Effective dossier dictionary in Dossier Settings

This commit is contained in:
Valentin Mihai 2023-08-08 14:29:01 +03:00
parent a75e7a3960
commit d2cce57319
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;