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